Skip to main content
Calcimator

Quantum Gate Calculator

Calculate quantum gate operations, output states, probabilities, and gate fidelity for quantum computing.

Inputs

rad

Results

P(|0⟩)

0%

P(|1⟩)

100%

Output |0⟩ Amplitude0
Output |1⟩ Amplitude1
Gate Fidelity1
Gate Error0%
How to Use This Calculator
  1. Select Gate Type: Pauli-X flips |0⟩↔|1⟩, Hadamard creates superposition, Pauli-Y and Pauli-Z apply phase rotations.
  2. Choose Input State: |0⟩ or |1⟩ as the single-qubit input to the gate operation.
  3. For rotation gates, set the Rotation Angle (rad): π/2 ≈ 1.5708 is a quarter-turn, π ≈ 3.1416 is a half-turn.
  4. Read P(|0⟩) and P(|1⟩) to see the measurement outcome probabilities after the gate transforms the input.
  5. Gate Fidelity (0–1) and Gate Error (%) indicate how well the ideal unitary operation is implemented.

What each input means

Gate Type
Quantum gate type
Input State
Input quantum state
Rotation Angle
Rotation angle (for rotation gates)

How this is calculated

Formula

|ψ_out⟩ = U|ψ_in⟩

Worked example, using the default values

  1. Identify Input Parameters
    Gate Type = 0, Input State = 0, Rotation Angle = 1.5707963267948966 = 3 input(s) provided
  2. Calculate P
    P
    0 = 0%
  3. Calculate P
    P
    100 = 100%
  4. Calculate Output |0⟩ Amplitude
    0 = 0
  5. Calculate Output |1⟩ Amplitude
    1 = 1

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

More in Science & Physics.