from RabiAmp import RabiAmp
from Ramsey import Ramsey
from FlipFlop import FlipFlop
from SPAM import SPAM
from RB import SingleQubitRB, SingleQubitRB_AC, SingleQubitRBT
@@ -161,8 +161,415 @@
 QubitRBT
+%0A%0A%0A%0A%0Afrom itertools import product%0Aimport operator%0Afrom ..PulsePrimitives import Id, X%0A%0Adef create_cal_seqs(qubits, numCals):%0A%09%22%22%22%0A%09Helper function to create a set of calibration sequences.%0A%09%22%22%22%0A%09calSet = %5BId, X%5D%0A%09calSeqs = %5Breduce(operator.mul, %5Bp(q) for p,q in zip(pulseSet, qubits)%5D) for pulseSet in product(calSet, repeat=len(qubits))%5D%0A%09return reduce(operator.add, %5B%5B%5Bseq%5D%5D*numCals for seq in calSeqs%5D)%0A

Add a helper function to create calibration sequences.