# InstructionDurations¶

class InstructionDurations(instruction_durations=None, dt=None)[source]

Bases : object

Helper class to provide durations of instructions for scheduling.

It stores durations (gate lengths) and dt to be used at the scheduling stage of transpiling. It can be constructed from backend or instruction_durations, which is an argument of transpile().

Methods

 from_backend Construct an InstructionDurations object from the backend. get Get the duration of the instruction with the name and the qubits. units_used Get the set of all units used in this instruction durations. update Update self with inst_durations (inst_durations overwrite self).