get(inst, qubits, unit='dt')¶
Get the duration of the instruction with the name and the qubits.
Instruction]) – An instruction or its name to be queried.
Qubit]]) – Qubits or its indices that the instruction acts on.
str) – The unit of duration to be returned. It must be ‘s’ or ‘dt’.
The duration of the instruction on the qubits.
- Return type
TranspilerError – No duration is defined for the instruction.