Skip to content

Commit

Permalink
Fixing residual-ZZ measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
msamiotis committed Jun 5, 2024
1 parent 3a34e64 commit 19f3be3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pycqed/instrument_drivers/meta_instrument/HAL_Device.py
Original file line number Diff line number Diff line change
Expand Up @@ -1436,8 +1436,8 @@ def measure_residual_ZZ_coupling(

all_qubits = [q0] + q_spectators
if prepare_for_timedomain:
self.prepare_for_timedomain(qubits=all_qubits, prepare_for_readout=False)
self.prepare_readout(qubits=[q0])
self.prepare_for_timedomain(qubits=all_qubits, prepare_for_readout=True)
self.prepare_readout(qubits=all_qubits)
if MC is None:
MC = self.instr_MC.get_instr()

Expand All @@ -1459,7 +1459,7 @@ def measure_residual_ZZ_coupling(
)

s = swf.OpenQL_Sweep(openql_program=p, CCL=self.instr_CC.get_instr())
d = self.get_int_avg_det(qubits=[q0])
d = self.get_int_avg_det(qubits=all_qubits)
MC.set_sweep_function(s)
MC.set_sweep_points(times_with_cal_points)
MC.set_detector_function(d)
Expand Down
2 changes: 1 addition & 1 deletion pycqed/measurement/openql_experiments/multi_qubit_oql.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def residual_coupling_sequence(
# adding the calibration points
p.add_multi_q_cal_points(
qubits=all_qubits,
combinations=['0' * n_qubits, '1' * n_qubits])
combinations=['0' * n_qubits, '0' * n_qubits, '1' * n_qubits, '1' * n_qubits])

p.compile()
return p
Expand Down

0 comments on commit 19f3be3

Please sign in to comment.