ALAPScheduleAnalysis#

class ALAPScheduleAnalysis(durations)[source]#

Dynamic circuits as-late-as-possible (ALAP) scheduling analysis pass.

This is a scheduler designed to work for the unique scheduling constraints of the dynamic circuits backends due to the limitations imposed by hardware. This is expected to evolve over time as the dynamic circuit backends also change.

In its current form this is similar to Qiskit’s ALAP scheduler in which instructions start as late as possible.

The primary differences are that:

  • Resets and control-flow currently trigger the end of a “quantum block”. The period between the end

    of the block and the next is nondeterministic ie., we do not know when the next block will begin (as we could be evaluating a classical function of nondeterministic length) and therefore the next block starts at a relative t=0.

  • During a measurement it is possible to apply gates in parallel on disjoint qubits.

  • Measurements and resets on disjoint qubits happen simultaneously and are part of the same block.

Scheduler for dynamic circuit backends.

Parameters:

durations (InstructionDurations) – Durations of instructions to be used in scheduling.

Attributes

ALAPScheduleAnalysis.is_analysis_pass

Check if the pass is an analysis pass.

ALAPScheduleAnalysis.is_transformation_pass

Check if the pass is a transformation pass.

Methods

ALAPScheduleAnalysis.__call__(circuit[, ...])

Runs the pass on circuit.

ALAPScheduleAnalysis.name()

Return the name of the pass.

ALAPScheduleAnalysis.run(dag)

Run the ASAPSchedule pass on dag.

ALAPScheduleAnalysis.__call__(circuit[, ...])

Runs the pass on circuit.