ASAPScheduleAnalysis.run#

ASAPScheduleAnalysis.run(dag)[source]#

Run the ALAPSchedule pass on dag. :type dag: DAGCircuit :param dag: DAG to schedule. :type dag: DAGCircuit

Raises:
  • TranspilerError – if the circuit is not mapped on physical qubits.

  • TranspilerError – if conditional bit is added to non-supported instruction.

Return type:

DAGCircuit

Returns:

The scheduled DAGCircuit.