Skip to content

Commit

Permalink
State of repo before trying out 1QRB (SSRO works)
Browse files Browse the repository at this point in the history
  • Loading branch information
msamiotis committed Mar 27, 2024
1 parent 0a3213f commit 9ffe664
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2712,8 +2712,6 @@ def measure_ssro(
# This snippet causes 0.08 s of overhead but is dangerous to bypass
p = sqo.off_on(
qubit_idx=self.cfg_qubit_nr(), pulse_comb='off_on',
nr_flux_dance=nr_flux_dance,
wait_time=wait_time,
initialize=post_select,
platf_cfg=self.cfg_openql_platform_fn())
self.instr_CC.get_instr().eqasm_program(p.filename)
Expand Down Expand Up @@ -6248,8 +6246,8 @@ def measure_single_qubit_randomized_benchmarking(
prepare_for_timedomain: bool = True,
ignore_f_cal_pts: bool = False,
compile_only: bool = False,
rb_tasks=None
):
rb_tasks=None,
disable_metadata = False):
# USED_BY: inspire_dependency_graph.py,
"""
Measures randomized benchmarking decay including second excited state
Expand Down Expand Up @@ -6368,18 +6366,19 @@ def send_rb_tasks(pool_):
d.prepare_function_kwargs = prepare_function_kwargs
d.nr_shots = reps_per_seed * len(sweep_points)
MC.set_detector_function(d)
MC.run('RB_{}seeds'.format(nr_seeds) + self.msmt_suffix, exp_metadata={'bins': sweep_points})
MC.run('RB_{}seeds'.format(nr_seeds) + self.msmt_suffix, exp_metadata={'bins': sweep_points},
disable_snapshot_metadata = disable_metadata)

a = ma2.RandomizedBenchmarking_SingleQubit_Analysis(
label='RB_',
rates_I_quad_ch_idx=0,
cal_pnts_in_dset=np.repeat(["0", "1", "2"], 2)
)

for key in a.proc_data_dict['quantities_of_interest'].keys():
if 'eps_simple_lin_trans' in key:
self.F_RB((1-a.proc_data_dict['quantities_of_interest'][key].n)**(1/1.875))

return True


Expand Down Expand Up @@ -6468,8 +6467,7 @@ def measure_ef_rabi_2D(
label: str = '',
analyze=True,
close_fig=True,
prepare_for_timedomain=True
):
prepare_for_timedomain=True):
"""
Measures a rabi oscillation of the ef/12 transition.
Expand All @@ -6489,7 +6487,8 @@ def measure_ef_rabi_2D(
p = sqo.ef_rabi_seq(
self.cfg_qubit_nr(),
amps=amps, recovery_pulse=recovery_pulse,
platf_cfg=self.cfg_openql_platform_fn()
platf_cfg=self.cfg_openql_platform_fn(),
add_cal_points=False
)

s = swf.OpenQL_Sweep(
Expand Down
Loading

0 comments on commit 9ffe664

Please sign in to comment.