gate_duration
- GateSet.gate_duration(gate)
Return a native gate’s duration, or
Nonewhen it has none.- Parameters:
gate (
Any) – One ofnative_gates, or its(name, qubits)pair.- Raises:
ValidationError – If
gatenames no native gate.- Return type:
Return a native gate’s duration, or None when it has none.
gate (Any) – One of native_gates, or its (name, qubits) pair.
ValidationError – If gate names no native gate.