Quantum Circuit Depth Estimator

JJ Ben-Joseph headshot JJ Ben-Joseph

Introduction: estimating quantum circuit runtime with Quantum Circuit Depth Estimator

A quantum-circuit estimate is most useful when you can turn gate counts and gate durations into a single runtime figure that you can compare across hardware options. This calculator does that by combining the number of 1-qubit and 2-qubit operations with the duration of each gate type and turning them into a simple nanosecond estimate that is easy to sanity-check.

A depth estimate is only as helpful as the assumptions behind it. The notes on this page explain what each field means, which units to use, and where the model is deliberately simple so you can judge whether the result is a realistic proxy for your circuit or just a rough screening tool.

The sections below show what question the estimator is meant to answer, how to enter a circuit description, how to read the total, and where the simplifying assumptions start to matter.

What quantum-circuit problem does this calculator solve?

The core question behind Quantum Circuit Depth Estimator is how long a specific circuit would take if every listed 1-qubit and 2-qubit operation contributed its own duration to the total. In practice, that helps you compare different compilation choices, spot whether entangling gates are dominating the schedule, and estimate whether a circuit is likely to fit within a coherence window.

Before entering numbers, describe the circuit in one sentence. For example: “How long does this ansatz take on my backend?”, “What happens if I swap in slower two-qubit gates?”, or “Does a shallower decomposition meaningfully reduce execution time?” A clear question makes it obvious which gate counts and timing assumptions belong in the fields.

How to use Quantum Circuit Depth Estimator

  1. Enter 1-qubit gates with the unit shown beside the field.
  2. Enter 1-qubit gate time (ns) with the unit shown beside the field.
  3. Enter 2-qubit gates with the unit shown beside the field.
  4. Enter 2-qubit gate time (ns) with the unit shown beside the field.
  5. Run the calculation to refresh the quantum-depth results panel.
  6. Check the output's unit, order of magnitude, and direction before comparing circuit variants.

If you are comparing different circuit layouts or hardware backends, keep a record of the inputs you used so you can recreate the same depth estimate later.

Inputs: how to choose gate counts and gate times

The form collects the pieces needed to estimate a circuit's total gate time. Most mistakes come from mixing incompatible units, using a gate time from a different hardware family, or counting operations that are not actually serialized in the path you care about. Use the checklist below as you enter your values:

The main inputs for Quantum Circuit Depth Estimator include:

If you are unsure about a timing value, start with a conservative estimate and then run a second scenario using a faster or slower backend. That gives you a more realistic range for circuit depth than a single number you might over-trust.

Formulas: how Quantum Circuit Depth Estimator converts gate counts to nanoseconds

For a circuit-depth estimate, the calculator gathers your gate counts, multiplies each count by its gate duration, and adds the contributions together. That keeps the model easy to audit: you can see exactly how much of the total comes from 1-qubit operations and how much comes from 2-qubit operations.

The calculator's result R can be represented as a function of the inputs x1xn:

R = f ( x1 , x2 , , xn )

A very common special case in quantum circuit analysis is a total that adds the single-qubit and entangling-gate contributions after each one is scaled by its duration:

T = i=1 n wi · xi

Here, wi represents the per-gate duration, a weighting, or a timing factor. In this context it tells you how much each operation type contributes to the overall runtime. When you read the result, ask whether the total rises the way you expect if you double the number of entangling gates or swap in a slower device. If not, revisit the units and the backend assumptions.

Worked example (step-by-step): estimating a small quantum circuit

Worked examples are a quick way to confirm that the estimator matches the circuit you have in mind. For illustration, suppose you enter the following three values for a toy circuit:

A simple sanity-check total (not necessarily the final output) is the sum of the main drivers:

Sanity-check total: 1 + 2 + 3 = 6

After you click calculate, compare the result panel to the scale you expected for that circuit. If the number is far off, check whether you entered counts where the model expected per-gate timings, or whether you mixed a total circuit count with a single-layer timing. If the result is plausible, change one value at a time and verify that the estimate moves in the direction you expect.

Comparison table: sensitivity to 1-qubit gate count in a quantum circuit

The table below changes only 1-qubit gates while keeping the other example values constant. The “scenario total” is shown as a simple comparison metric so you can see how sensitive the circuit-time estimate is to a change in one input.

Scenario 1-qubit gates Other inputs Scenario total (comparison metric) Interpretation
Conservative (-20%) 0.8 Unchanged 5.8 Lower inputs typically reduce the output or requirement, depending on the model.
Baseline 1 Unchanged 6 This is the baseline case to compare against the other scenarios.
Aggressive (+20%) 1.2 Unchanged 6.2 Higher inputs typically increase the output or cost/risk in proportional models.

Use the calculator's actual result panel with conservative, baseline, and aggressive assumptions to see how much the total runtime changes when a key quantum-gate input changes.

How to interpret the quantum-circuit-depth result

The results panel is meant to summarize the circuit estimate cleanly instead of dumping every intermediate step. When you get a number, check three things: (1) does the unit match the decision you are trying to make? (2) is the magnitude plausible for the gate counts and times you entered? (3) if you adjust a major gate count, does the total move in the expected direction? If all three line up, the output is a useful estimate rather than just a number.

When relevant, a CSV download option provides a portable record of the circuit scenario you just evaluated. Saving that CSV makes it easier to compare backends, share compilation assumptions with teammates, and reproduce the same estimate later without re-entering every gate count.

Limitations and assumptions for quantum circuit depth estimates

No estimator can capture every scheduling detail inside a real quantum device. This tool is intentionally simple: it is built to give you a fast, transparent approximation of total gate time, not a full hardware scheduler. Keep these common limitations in mind:

If you use the output for research planning, procurement, compliance, or publication, treat it as a starting point and verify the assumptions against authoritative hardware documentation. The best use of a quantum circuit depth calculator is to make the timing logic visible: you can see which gate types dominate, change assumptions transparently, and explain the estimate clearly to someone else.

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 circuit depth.