DynamicCircuitInstructionDurations.from_backend#

classmethod DynamicCircuitInstructionDurations.from_backend(backend)#

Construct an InstructionDurations object from the backend.

Parameters:

backend (Backend) – backend from which durations (gate lengths) and dt are extracted.

Returns:

The InstructionDurations constructed from backend.

Return type:

InstructionDurations

Raises:

TranspilerError – If dt and dtm is different in the backend.