Skip to content

Commit

Permalink
Fix meas channels for RB
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Ristè committed May 11, 2020
1 parent ae1e2db commit 3b0802d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions QGL/BasicSequences/RB.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,8 @@ def TwoQubitRB(q1, q2, seqs, meas_qubits=None,
#Add the measurement to all sequences
for seq in seqsBis:
if not meas_qubits:
seq.append(MEAS(q1) * MEAS(q2))
else:
seq.append(reduce(operator.mul, [MEAS(q) for q in meas_qubits]))
meas_qubits = (q1,q2)
seq.append(reduce(operator.mul, [MEAS(q) for q in meas_qubits]))

axis_descriptor = [{
'name': 'length',
Expand All @@ -312,7 +311,7 @@ def TwoQubitRB(q1, q2, seqs, meas_qubits=None,

#Tack on the calibration sequences
if add_cals:
seqsBis += create_cal_seqs((q1, q2), 2)
seqsBis += create_cal_seqs((q1, q2, 2, measChans = meas_qubits)
axis_descriptor.append(cal_descriptor((q1, q2), 2))

metafile = compile_to_hardware(seqsBis, 'RB/RB', axis_descriptor = axis_descriptor, suffix = suffix, extra_meta = {'sequences':seqs})
Expand Down

0 comments on commit 3b0802d

Please sign in to comment.