@@ -0,0 +1,1016 @@
+%22%22%22%0ASequences for optimizing gating timing.%0A%22%22%22%0Afrom ..PulsePrimitives import *%0Afrom ..Compiler import compile_to_hardware%0A%0Adef sweep_gateDelay(qubit, sweepPts):%0A    %22%22%22%0A    Sweep the gate delay associated with a qubit channel using a simple Id, Id, X90, X90%0A    seqeuence.%0A    %0A    Parameters%0A    ---------%0A    qubit : logical qubit to create sequences for%0A    sweepPts : iterable to sweep the gate delay over.%0A    %22%22%22%0A    %0A    %0A    generator = qubit.physChan.generator%0A    oldDelay = generator.gateDelay%0A    %0A    for ct, delay in enumerate(sweepPts):%0A        seqs = %5B%5BId(qubit, length=120e-9), Id(qubit), MEAS(qubit)%5D,%0A                 %5BId(qubit, length=120e-9), MEAS(qubit)%5D,%0A                  %5BId(qubit, length=120e-9), X90(qubit), MEAS(qubit)%5D,%0A                   %5BId(qubit, length=120e-9), X90(qubit), MEAS(qubit)%5D%5D%0A    %0A        generator.gateDelay = delay%0A        %0A        compile_to_hardware(seqs, 'BlankingSweeps/GateDelay', suffix='_%7B%7D'.format(ct+1))%0A%0A    generator.gateDelay = oldDelay           %0A        

Add a sequence module for optimizing gating