Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version

ASAPSchedule

class ASAPSchedule(*args, **kwargs)

GitHub

Bases: qiskit.transpiler.passes.scheduling.base_scheduler.BaseSchedulerTransform

ASAP Scheduling pass, which schedules the start time of instructions as early as possible..

See BaseSchedulerTransform for the detailed behavior of the control flow operation, i.e. c_if.

Note

This base class has been superseded by ASAPScheduleAnalysis and the new scheduling workflow. It will be deprecated and subsequently removed in a future release.

Scheduler initializer.

Parameters

  • durations – Durations of instructions to be used in scheduling
  • clbit_write_latency – A control flow constraints. Because standard superconducting quantum processor implement dispersive QND readout, the actual data transfer to the clbit happens after the round-trip stimulus signal is buffered and discriminated into quantum state. The interval [t0, t0 + clbit_write_latency] is regarded as idle time for clbits associated with the measure instruction. This defaults to 0 dt which is identical to Qiskit Pulse scheduler.
  • conditional_latency – A control flow constraints. This value represents a latency of reading a classical register for the conditional operation. The gate operation occurs after this latency. This appears as a delay in front of the DAGOpNode of the gate. This defaults to 0 dt.

Methods

name

ASAPSchedule.name()

Return the name of the pass.

run

ASAPSchedule.run(dag)

Run the ASAPSchedule pass on dag.

Parameters

dag (DAGCircuit) – DAG to schedule.

Returns

A scheduled DAG.

Return type

DAGCircuit

Raises


Attributes

CONDITIONAL_SUPPORTED

Default value: (<class 'qiskit.circuit.gate.Gate'>, <class 'qiskit.circuit.delay.Delay'>)

is_analysis_pass

Check if the pass is an analysis pass.

If the pass is an AnalysisPass, that means that the pass can analyze the DAG and write the results of that analysis in the property set. Modifications on the DAG are not allowed by this kind of pass.

is_transformation_pass

Check if the pass is a transformation pass.

If the pass is a TransformationPass, that means that the pass can manipulate the DAG, but cannot modify the property set (but it can be read).

Was this page helpful?
Report a bug or request content on GitHub.