DynamicCircuitInstructionDurations#

class DynamicCircuitInstructionDurations(instruction_durations=None, dt=None, enable_patching=True)[source]#

For dynamic circuits the IBM Qiskit backend currently reports instruction durations that differ compared with those required for the legacy Qobj-based path. For now we use this class to report updated InstructionDurations. TODO: This would be mitigated by a specialized Backend/Target for dynamic circuit backends.

Dynamic circuit instruction durations.

Attributes

Methods

DynamicCircuitInstructionDurations.from_backend(backend)

Construct an InstructionDurations object from the backend.

DynamicCircuitInstructionDurations.get(inst, ...)

Get the duration of the instruction with the name, qubits, and parameters.

DynamicCircuitInstructionDurations.units_used()

Get the set of all units used in this instruction durations.

DynamicCircuitInstructionDurations.update(...)

Update self with inst_durations (inst_durations overwrite self).