Skip to content

Commit

Permalink
added option to ignore f-cal pts in RB analysis for qubit object
Browse files Browse the repository at this point in the history
  • Loading branch information
AdriaanRol committed Aug 23, 2018
1 parent a95c0ad commit 28e9c1c
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1565,7 +1565,7 @@ def measure_qubit_frequency_dac_scan(self, freqs, dac_values,
MC.set_sweep_function(spec_source.frequency)
MC.set_sweep_points(freqs)
if nested_resonator_calibration:
dac_par = swf.Nested_resonator_tracker(qubit=self,
dac_par = swf.Nested_resonator_tracker(qubit=self,
nested_MC=self.instr_nested_MC.get_instr(), freqs=resonator_freqs,
par=dac_par)
MC.set_sweep_function_2D(dac_par)
Expand Down Expand Up @@ -1628,7 +1628,7 @@ def measure_anharmonicity(self, f_01, f_02=None, f_12=None, f_01_power=None,
'''
if (f_02 is None) and (f_12 is None):
raise ValueError("provide either and estimate of f_02 or f_12")
if f_12==None:
if f_12==None:
f_anharmonicity=(f_01-f_02)*2
f_12=f_01-f_anharmonicity
if f_01_power==None:
Expand Down Expand Up @@ -2868,7 +2868,8 @@ def measure_motzoi(self, motzoi_amps=None,
def measure_single_qubit_randomized_benchmarking(
self, nr_cliffords=2**np.arange(12), nr_seeds=100,
MC=None,
recompile: bool ='as needed', prepare_for_timedomain: bool=True):
recompile: bool ='as needed', prepare_for_timedomain: bool=True,
ignore_f_cal_pts:bool=False):
"""
Measures randomized benchmarking decay including second excited state
population.
Expand Down Expand Up @@ -2952,7 +2953,7 @@ def measure_single_qubit_randomized_benchmarking(
MC.run('RB_{}seeds'.format(nr_seeds)+self.msmt_suffix,
exp_metadata={'bins': sweep_points})

a = ma2.RandomizedBenchmarking_SingleQubit_Analysis(label='RB_')
a = ma2.RandomizedBenchmarking_SingleQubit_Analysis(label='RB_', ignore_f_cal_pts=ignore_f_cal_pts)
return a

def measure_randomized_benchmarking_old(self, nr_cliffords=2**np.arange(12),
Expand Down

0 comments on commit 28e9c1c

Please sign in to comment.