qiskit.transpiler.InstructionDurations.from_backend¶
- classmethod InstructionDurations.from_backend(backend)[código fonte]¶
Construct an
InstructionDurations
object from the backend.- Parâmetros
backend (
BaseBackend
) – backend from which durations (gate lengths) and dt are extracted.- Retorno
The InstructionDurations constructed from backend.
- Tipo de retorno
- Levanta
TranspilerError – If dt and dtm is different in the backend.