QUANTHROPIC
Menu +
EXPERIMENTS   /   Educational browser simulations

Change one variable.

Three small simulations of ideal textbook models. Each one changes a single quantity and shows what follows from it.

Browser-based educational simulations. They run on your device, send no data and use no quantum hardware.

EXPERIMENT   /   State and measurement

Quantum State Explorer

How does a qubit’s direction change the chance of measuring zero?

Bloch sphere. State vector at polar angle 60 degrees and relative phase 0 degrees.z · |0⟩|1⟩xy|ψ⟩
Bloch sphere · One ideal pure qubit · Dashed lines trace the vector’s shadow on the equator

Prepare a state

Browser simulation · Exact predictions

°
°

Named states

Measurement basis
P(0)75.0%
P(1)25.0%
α (|0⟩)
0.866 + 0.000i
β (|1⟩)
0.500 + 0.000i
Bloch (x, y, z)
(+0.866, 0.000, +0.500)

Changing φ turns the vector around the z axis. Computational-basis probabilities stay the same; switch to the X basis to see the phase matter.

Model: |ψ⟩ = cos(θ/2)|0⟩ + eiφ sin(θ/2)|1⟩. P(0) = cos²(θ/2) and P(+) = (1 + sin θ cos φ)/2. Values are exact predictions for an ideal qubit with no noise.

EXPERIMENT   /   Relative phase

Wave Interference

What happens when two identical waves fall out of step?

Two equal waves in phase. Their sum has amplitude 2A.2AA0−A−2A0λ2λposition x
  • Wave 1, amplitude A
  • Wave 2, shifted by Δφ
  • Sum of displacements
  • Resultant amplitude ±R

Shift one wave

Browser simulation · Classical waves

°

Time

Relative phase
0° (0)
Resultant amplitude R
2.000 A
Intensity, relative to one wave
4.000 × I₁
Interference
constructive
Time
t = 0.000 T

Model: y = A sin(2πx/λ − 2πt/T + δ) for each wave, added point by point. R = 2A|cos(Δφ/2)|. Displacement is the signed height of the wave at one point; intensity is proportional to R² and is averaged over time. Both waves travel in the same direction, so the pattern moves while its amplitude stays fixed.

EXPERIMENT   /   Phase coherence

Classical versus Quantum

Can two preparations with the same measurement probabilities respond differently to a gate?

  1. Frame 1

    Prepare.

    Choose |0⟩ or |1⟩ with equal probability for the mixture. Prepare |+⟩ for the coherent state.

    Mixture ½ eachCoherent |+⟩
  2. Frame 2

    Predict.

    Both give P(0) = ½ when measured now. Predict what one Hadamard gate will change on fresh copies.

    Mixture 50% zeroCoherent 50% zero
  3. Frame 3

    Compare.

    Apply H once to each fresh preparation. The mixture retains its probabilities. H maps |+⟩ to |0⟩.

    Mixture 50% zeroCoherent 100% zero

Run it yourself

Browser simulation · Exact and sampled results

Hadamard gates on each fresh copy
Copies to measure
Optional: predict P(0) for the coherent copies

No copies measured yet.

Equal mixture

|0⟩ or |1⟩, chosen at random with probability ½ each

Coherence ρ₀₁
0.000
Each measured copy will appear here as a dot.
Exact P(0)50.0%
Sampled zerosNot measured

Coherent |+⟩

(|0⟩ + |1⟩)/√2, the same superposition on every copy

Coherence ρ₀₁
0.000
Each measured copy will appear here as a dot.
Exact P(0)100.0%
Sampled zerosNot measured

Model: density matrices ρ for one ideal qubit, H = (1/√2)[[1, 1], [1, −1]], ρ → HρH, and P(0) = ρ₀₀. Exact values come from the matrices. Sampled values are simulated measurements from a seeded pseudo-random generator, so a run can be repeated. Both preparations share the same diagonal; only the coherent one has the off-diagonal term that a Hadamard turns into a definite result.

METHOD   /   How these simulations work

Ideal models, labelled.

What is modelled

One ideal qubit with no noise, and two ideal classical waves. Real devices lose coherence, mis-apply gates and misread results. None of that is included here.

Exact and sampled

Exact values come straight from the formulas. Sampled values imitate repeated measurements with a seeded pseudo-random generator, so they scatter around the exact values and a run can be reproduced.

How it is checked

The calculations live in separate modules from the drawings and are covered by automated tests: poles, equator, normalization, phase periodicity, the wave endpoints at 0, π and 2π, and agreement between each figure and its readout to within 10⁻⁹ before rounding.

Further study: IBM Quantum Learning, superposition with Qiskit · OpenStax University Physics, Interference of Waves

Explore the possibilities of quantum intelligence.

An independent conceptual quantum AI research initiative.