qiskit.transpiler.InstructionDurations.from_backend¶
-
classmethod
InstructionDurations.
from_backend
(backend)[source]¶ Construct an
InstructionDurations
object from the backend.- Parameters
backend (
BaseBackend
) – backend from which durations (gate lengths) and dt are extracted.- Returns
The InstructionDurations constructed from backend.
- Return type
- Raises
TranspilerError – If dt and dtm is different in the backend.