2
$\begingroup$

how can we calculate the duration of single qubit gate using Qiskit in IBM? In other words if I have to insert a delay in the place of the single qubit gate, how would I know how much delay in nanosecond needs to be provided?

from qiskit import QuantumCircuit
idle_identity = QuantumCircuit(1,'q')
idle_identity.delay(300 * 16, qreg_q[0])

I can see that a delay of 300x16 is assigned to qubit 0 of a quantum device. Likewise is there any way that I can precisely extract the gate duration of single qubit gate (e.g. sx, rz gates) so that I can replace 300*16 with the corresponding duration.

$\endgroup$

2 Answers 2

2
$\begingroup$

It's available from backend properties's gate_length.

API Doc: https://qiskit.org/documentation/stubs/qiskit.providers.models.BackendProperties.gate_length.html#qiskit.providers.models.BackendProperties.gate_length

For example, the id gate usually has a gate length of 30 ns.

$\endgroup$
1
$\begingroup$
  1. Measure a qubit without a gate in super position.
  2. Measure a qubit with a gate in super position.
  3. Substract (2) - (1) to get the time.

I suggest to do this with 1000 Shots each to have a more precise result.

without gate you want to measure with a gate

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.