Quantum Circuit Depth Estimator

Introduction to quantum circuit depth from gate timing

Quantum circuit depth is easiest to compare when you can reduce a circuit to two timing terms: single-qubit gates and entangling gates. This calculator multiplies each gate count by its per-gate duration and adds the results so you can estimate the total gate time in nanoseconds without guessing at the arithmetic.

That simple model is useful only when its assumptions are visible. The discussion below explains what each field means, how the estimate is assembled, and where the method stops short of a full hardware schedule. With those boundaries in mind, the result becomes a practical proxy for comparing a circuit path, a compilation choice, or a backend timing assumption.

What quantum-circuit timing question does this estimator answer?

This quantum circuit depth estimator answers a practical planning question: if you already know how many 1-qubit and 2-qubit gates appear in a path of interest, what total gate time do those operations imply on a given backend? It can help you check whether an ansatz, a compiled routine, or a hardware-specific decomposition is likely to be short enough for the device you want to run on.

Before entering values, phrase the timing question in plain language. You might ask, “How long does this circuit fragment take on my device?”, “What happens if the entangling gate is slower?”, or “Does a different decomposition reduce total time enough to matter?” A clear question helps you choose the right gate counts and the right duration for each gate class.

How to use the quantum circuit depth estimator

Use the quantum circuit depth form for one consistent circuit path rather than for a mixture of unrelated operations. Enter the count of single-qubit operations, their typical duration, the count of two-qubit entangling operations, and their typical duration. Then select Estimate Circuit Time to see the total alongside the two separate contributions.

  1. Enter 1-qubit gates as the number of single-qubit operations in the path you want to time.
  2. Enter 1-qubit gate time (ns) as the typical duration of one of those operations.
  3. Enter 2-qubit gates as the number of entangling operations in the same path.
  4. Enter 2-qubit gate time (ns) as the typical duration of one entangling operation on the backend you are modeling.
  5. Run the calculation and compare the total with the two gate-class contributions in the results panel.

If you are comparing compiler outputs or different hardware targets, keep the inputs with the result so you can recreate the same estimate later. A small change in gate count or gate duration is then easy to audit instead of being lost among separate trial runs.

Choosing gate counts and gate times for a quantum circuit

The quantum-circuit depth form collects the pieces needed to estimate total runtime from gate counts. Most errors come from mixing counts with durations, copying a timing value from the wrong hardware family, or counting operations that are not on the serialized path you actually care about. Confirm that all four fields describe the same compilation strategy and device assumption.

  • 1-qubit gates: use the measured, quoted, or planned number of single-qubit rotations, phase gates, and comparable one-qubit operations on the path under study.
  • 1-qubit gate time (ns): enter the typical duration of one single-qubit operation on the platform you are modeling.
  • 2-qubit gates: use the number of entangling operations, such as CNOT, CZ, or Mølmer–Sørensen gates, on that same path.
  • 2-qubit gate time (ns): enter the typical duration of one entangling operation on the chosen backend.

Units are especially important. The form expects nanoseconds. If a hardware report gives microseconds, convert before entering the value: 1 µs equals 1000 ns. If you are uncertain about a timing value, try a conservative slower duration and a faster duration as separate runs. A range of plausible estimates is often more informative than one number that appears precise but rests on an uncertain calibration.

Gate counts also need a deliberate interpretation. A raw program-wide count is not automatically a critical-path depth. This calculator models the serial sequence that you choose to represent, so parallel operations should not simply be added if your actual timing question concerns a schedule where they overlap. Conversely, if you are intentionally comparing fully serialized implementations, adding the selected operations is exactly the intended use.

Quantum circuit depth formula in nanoseconds

This quantum circuit calculator uses a direct linear sum. It multiplies the single-qubit gate count by the single-qubit gate time, multiplies the two-qubit gate count by the two-qubit gate time, and then adds the two contributions together. Because the formula is transparent, it is easy to see which input drives the final number.

D = n1 · t1 + n2 · t2

Here, n1 is the number of 1-qubit gates, t1 is the duration of each 1-qubit gate in nanoseconds, n2 is the number of 2-qubit gates, and t2 is the duration of each 2-qubit gate in nanoseconds. Raising any one value raises the total by its matching contribution. This also provides a quick sensitivity check: when the two-qubit product is much larger, reducing entangling-gate count or latency will have the strongest effect.

Because the formula is additive, the estimate does not try to infer hidden concurrency, reroute gates, include measurement time, or reorder operations on your behalf. Read it as a transparent gate-time check: after accounting for the counts and durations you entered, does this circuit path remain short enough for the comparison you need to make?

Worked example: 24 single-qubit gates and 8 entangling gates

This worked example for the quantum-circuit depth estimator uses a realistic toy circuit so you can verify the arithmetic. Suppose the path you are analyzing contains 24 single-qubit gates at 35 ns each and 8 two-qubit gates at 220 ns each.

First calculate the single-qubit contribution: 24 × 35 = 840 ns. Then calculate the two-qubit contribution: 8 × 220 = 1760 ns. Adding the pieces gives a total estimated depth of 2600 ns, or 2.6 µs.

The example shows why gate class matters. Although there are fewer two-qubit gates, they contribute the larger share of total time. A reduction in their count or duration would therefore affect this estimate more than an equally sized numerical reduction in the one-qubit timing. That conclusion is not universal, but the separate result lines make it easy to see whether it applies to your circuit.

Comparing slower entangling gates in a circuit-depth estimate

The table changes only the 2-qubit gate time while keeping 24 single-qubit gates at 35 ns each and keeping the two-qubit gate count at 8. It demonstrates how the estimate responds when entangling-gate duration shifts by 20 percent in either direction.

Scenario2-qubit gate time (ns)Other inputsEstimated totalInterpretation
Faster (−20%)17624 one-qubit gates at 35 ns each; 8 two-qubit gates2248 nsShorter entangling gates pull the total down by 352 ns, showing that two-qubit timing is the main lever in this circuit.
Baseline22024 one-qubit gates at 35 ns each; 8 two-qubit gates2600 nsThis reference case uses the original circuit path and hardware assumption.
Slower (+20%)26424 one-qubit gates at 35 ns each; 8 two-qubit gates2952 nsA slower entangling gate adds 352 ns, revealing how quickly the total grows when the bottleneck operation gets longer.

Use the result panel with faster, baseline, and slower assumptions to build the same kind of comparison for your own circuit. For many quantum circuits, changing entangling-gate latency moves the estimate more than changing any other single input, but the displayed contributions let you verify that rather than assume it.

Interpreting the quantum circuit depth result

The results panel separates the total from each gate-class contribution so you can identify the input driving the estimate. When the number appears, check three things: whether the unit matches the decision you are making, whether the magnitude is plausible for the gate counts and durations entered, and whether the total changes in the expected direction after you adjust one field.

If the 2-qubit contribution is much larger than the 1-qubit contribution, that is a useful clue rather than an error. It means entangling gates drive the estimate, which is common on many backends and is often the first place to look when you want to shorten a circuit. If the contributions are close, both gate classes matter, and a meaningful improvement may require changes to both counts or durations.

When you need a record, copy the displayed values into a notebook, experiment log, or spreadsheet together with the circuit description, compiler version, and hardware source for the durations. That context makes later comparisons more credible and helps teammates understand why one circuit variant was expected to run faster than another.

Limitations and assumptions of this quantum circuit depth estimate

This quantum circuit depth model is intentionally simple. It provides a fast, visible approximation of total gate time rather than a complete device schedule. The estimate assumes that the selected operations contribute serially and proportionally to their durations.

  • Parallelism: concurrent operations can make a true scheduled depth shorter than this sum.
  • Routing and compilation: swap insertion, connectivity limits, decompositions, and pulse-level choices can alter both gate counts and durations.
  • Additional operations: reset, measurement, feed-forward, calibration pauses, control overhead, and queueing are outside this formula.
  • Timing variation: reported gate durations can depend on qubit pair, calibration state, and backend configuration.
  • Rounding: displayed results are rounded to two decimal places, so tiny scenario differences may not be meaningful.

For research planning, procurement, compliance, or publication, treat this calculator as a starting point and verify its inputs against current hardware documentation and your compiler’s schedule. Its central value is clarity: it reveals which gate type dominates, lets you vary assumptions in a controlled way, and gives you an estimate that is easy to explain.

Count the single-qubit rotations or phase gates in the circuit path you want to estimate. Use nanoseconds for superconducting hardware, or convert microseconds to ns for ion-trap platforms. Include entangling operations such as CNOT, CZ, or Mølmer–Sørensen gates. Provide the typical duration of one entangling gate on the platform you are modeling.
Enter quantum gate counts and timings to estimate the circuit’s total gate time.

Circuit Timing Sprint: schedule gates before depth builds up

Try this optional timing challenge after estimating your circuit. Each cyan 1Q pulse and magenta 2Q bridge travels toward the compile line. Tap the canvas, or press Space while it is focused, when the next gate reaches the line. Precise scheduling grows a streak; missed timing windows cost energy.

Score0
Time75.0 s
Streak0
Energy● ● ●
Progress0%
Your browser does not support the canvas element.

Compile a clean quantum path

Schedule incoming 1Q pulses and 2Q bridges exactly as they cross the gold compile line. Survive the 75-second run with as much energy and as long a streak as possible.

Controls: tap or click anywhere on the circuit at the right moment; Space is the keyboard fallback. A phase-drift twist arrives midway through the run.

Embed this calculator

Copy and paste the HTML below to add the Quantum Circuit Depth Estimator: Gate-Time Estimate for 1- and 2-Qubit Operations to your website.