Skip to main content
Calcimator

Quantum Decoherence Calculator

Calculate quantum decoherence time, coherence decay, purity, and fidelity degradation for quantum systems.

About this calculator

This calculator applies the standard decoherence relations: the transverse coherence time T2 is fixed by energy relaxation and pure dephasing together through 1/T2 = 1/(2*T1) + 1/T_phi, so T2 can never exceed 2*T1. The off-diagonal element of the density matrix then decays as e^(-t/T2), and both Purity and Fidelity are read off that decay: for a qubit prepared in an equal superposition, purity is 1/2*(1 + e^(-2t/T2)) and fidelity to the initial state is 1/2*(1 + e^(-t/T2)). Both therefore fall as either T1 or T_phi shortens, and both bottom out at 0.5 -- the maximally mixed value for a two-level system -- rather than reaching zero. Purity and Fidelity are both evaluated at the elapsed time you enter in Evaluation Time, not at some implicit reference point -- set it equal to T2 to read the canonical 1/e survival, or to your algorithm's total runtime to see what a real circuit would have left.

Temperature enters through a separate thermal pathway: the thermal occupation of the qubit mode, n_bar = 1/(e^(h_bar*omega/(k_B*T)) - 1), using h_bar = 1.054571817e-34 J*s and k_B = 1.380649e-23 J/K. Stimulated absorption and emission shorten T1 to Thermal T1 = T1/(1 + 2*n_bar) and leave a residual excited-state population of n_bar/(1 + n_bar). Because the occupation is exponential in h_bar*omega/(k_B*T) rather than linear in T, a 5 GHz qubit at 20 mK sits essentially in its ground state, while the same qubit at 300 mK carries a percent-level thermal population. Quality Factor is T2 divided by the Gate Time you enter -- roughly how many gate operations fit inside the qubit's coherence window.

Inputs

s
s
s
s
K
Hz

Results

T2 (Coherence Time)

0.000067 s

Coherence Decay

0.8607

Purity

0.8704

Fidelity

0.9304

Quality Factor2,222.22
Thermal T1 (with Stimulated Transitions)0.0001 s
Thermal Excited-State Population0.000006
How to Use This Calculator
  1. Enter T1 (Energy Relaxation Time) and T_phi (Pure Dephasing Time) — superconducting qubits are typically ~10-100 µs, trapped ions ~seconds.
  2. Enter Evaluation Time — the elapsed time at which to read Purity and Fidelity. Set it equal to T2 to read the canonical 1/e survival point.
  3. Enter Gate Time (a superconducting single-qubit gate is typically 20-50 ns) to get a realistic Quality Factor.
  4. Set Temperature and Qubit Frequency: millikelvin temperatures (0.01-0.1 K) and gigahertz frequencies are typical for superconducting quantum processors.
  5. Read T2 (Coherence Time), Purity (1 = pure state, 0.5 = maximally mixed — the floor for a qubit), and Fidelity to assess qubit quality.

How the result changes with T_phi (Pure Dephasing Time)

T_phi (Pure Dephasing Time)T2 (Coherence Time)Coherence DecayPurity
00.00004 s0.77880.8033
00.000055 s0.83250.8465
00.000086 s0.88990.8959
00.000111 s0.91390.9176

What each input means

T1 (Energy Relaxation Time)
Energy relaxation time of the qubit. Sets a hard ceiling of T2 = 2*T1.
T_phi (Pure Dephasing Time)
Pure dephasing time, independent of energy relaxation. Combines with T1 to set T2.
Evaluation Time
Elapsed time at which Purity and Fidelity are evaluated. Set equal to T2 to read the canonical 1/e survival.
Gate Time
Single-qubit gate duration. Superconducting gates typically run 20-50 ns, trapped-ion gates microseconds.
Temperature
System temperature. Drives the thermal-occupation pathway that shortens Thermal T1.
Qubit Frequency
Qubit transition frequency, used in the thermal-occupation calculation. 5 GHz is typical for a superconducting transmon.

How this is calculated

Formula

ρ(t) = ρ(0) × e^(-t/T₂)

Worked example, using the default values

  1. Identify Input Parameters
    6 parameters
    T1 = 0.0001, T_phi = 0.0001, Evaluation Time = 0.00001, Gate Time = 3e-8, Temperature = 0.02, Qubit Frequency = 5000000000 = 6 input(s) provided
  2. Calculate T2 (Coherence Time)
    1/T2 = 1/(2*T1) + 1/T_phi
    0.00006667 = 0.00006667
  3. Calculate Coherence Decay
    Coherence Decay = e^(-evalTime / T2)
    0.8607 = 0.8607
  4. Calculate Purity
    Purity = 1/2 * (1 + e^(-2*evalTime / T2))
    0.8704 = 0.8704
  5. Calculate Quality Factor
    Quality Factor = T2 / Gate Time
    2222.22 = 2222.22
  6. Calculate Thermal T1
    Thermal T1 = T1 / (1 + 2 * n_bar)
    0.0001 = 0.0001

Engine last updated . Checked against 3 independently-derived tests — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.

Frequently Asked Questions

Why can't Purity ever fall below 0.5 here?

Because 0.5 is the purity of the maximally mixed state for a two-level system: Tr(rho^2) is bounded below by 1/d, and d = 2 for a qubit. A fully decohered qubit is an even mixture of the two basis states, and no amount of additional dephasing can take it past that. Any model that reports a qubit purity below 0.5 -- or a purity of zero -- is not describing a physical density matrix.

Why does T2 never exceed twice T1?

Because T2 combines two independent decay channels -- energy relaxation (T1) and pure dephasing (T_phi) -- through 1/T2 = 1/(2*T1) + 1/T_phi. Even with zero pure dephasing (T_phi at infinity), the 1/(2*T1) term alone sets T2 = 2*T1; any additional dephasing can only shorten T2 further, never lengthen it past that ceiling.

What's the difference between Purity and Fidelity here?

Fidelity to the initial state decays as 1/2*(1 + e^(-t/T2)) -- one power of the coherence-decay factor. Purity decays as 1/2*(1 + e^(-2t/T2)) -- the SQUARE of that same factor, because purity is a trace of the density matrix squared. Purity therefore always falls at or below Fidelity for the same elapsed time, and both converge to 0.5 as Evaluation Time grows.

How does Temperature affect the results, and why is there a separate Thermal T1?

Temperature does not change T2 or the main Purity/Fidelity figures directly -- those are set purely by T1 and T_phi. Instead, Temperature drives a thermal occupation of the qubit's energy levels, n_bar, which stimulates additional relaxation. Thermal T1 is what T1 becomes once that stimulated relaxation is included: it is always shorter than or equal to the T1 you entered, and the gap only becomes significant once k_B*T approaches the qubit's transition energy h_bar*omega.

What does Quality Factor represent here?

It's T2 divided by the Gate Time you enter -- roughly how many gate operations fit inside the qubit's coherence window. Use a realistic gate time: a superconducting single-qubit gate is typically 20-50 ns and a two-qubit gate 40-300 ns, while trapped-ion gates run microseconds to tens of microseconds.

The questions that sit next to this one — chosen by subject, including calculators filed under a different category.

More in Science & Physics.