From 1a08f095056053846e8847fc3fbab94563e02470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Rist=C3=A8?= Date: Wed, 25 Apr 2018 11:33:14 -0400 Subject: [PATCH] Save sequences as extra_meta Unintentionally merged with previous commit, the ability to add extra metafile info --- QGL/BasicSequences/RB.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/QGL/BasicSequences/RB.py b/QGL/BasicSequences/RB.py index 6fdd4d1f..6075445d 100644 --- a/QGL/BasicSequences/RB.py +++ b/QGL/BasicSequences/RB.py @@ -80,7 +80,7 @@ def SingleQubitRB(qubit, seqs, purity=False, showPlot=False, add_cals=True): seqsBis += create_cal_seqs((qubit, ), 2) axis_descriptor.append(cal_descriptor((qubit,), 2)) - metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor) + metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor, extra_meta = {'sequences':seqs}) if showPlot: plot_pulse_files(metafile) @@ -118,7 +118,7 @@ def TwoQubitRB(q1, q2, seqs, showPlot=False, suffix="", add_cals=True): seqsBis += create_cal_seqs((q1, q2), 2) axis_descriptor.append(cal_descriptor((q1, q2), 2)) - metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor, suffix = suffix) + metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor, suffix = suffix, extra_meta = {'sequences':seqs}) if showPlot: plot_pulse_files(metafile) @@ -155,7 +155,7 @@ def SingleQubitRB_AC(qubit, seqs, purity=False, showPlot=False, add_cals=True): seqsBis += create_cal_seqs((qubit, ), 2) axis_descriptor.append(cal_descriptor((qubit,), 2)) - metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor) + metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor, extra_meta = {'sequences':seqs}) if showPlot: plot_pulse_files(metafile) @@ -195,7 +195,7 @@ def SingleQubitRB_DiAC(qubit, seqs, compiled=True, purity=False, showPlot=False, seqsBis += [[Id(qubit), MEAS(qubit)], [Id(qubit), MEAS(qubit)], [X90(qubit), X90(qubit), MEAS(qubit)], [X90(qubit), X90(qubit), MEAS(qubit)]] axis_descriptor.append(cal_descriptor((qubit,), 2)) - metafile = compile_to_hardware(seqsBis, 'RB_DiAC/RB_DiAC', axis_descriptor = axis_descriptor) + metafile = compile_to_hardware(seqsBis, 'RB_DiAC/RB_DiAC', axis_descriptor = axis_descriptor, extra_meta = {'sequences':seqs}) if showPlot: plot_pulse_files(metafile) @@ -337,7 +337,7 @@ def SimultaneousRB_AC(qubits, seqs, showPlot=False, add_cals=True): seqsBis += create_cal_seqs((qubits), 2) axis_descriptor.append(cal_descriptor((qubits), 2)) - metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor) + metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor, extra_meta = {'sequences':seqs}) if showPlot: plot_pulse_files(metafile)