🌀
QubitForge
A qubit is just two numbers — a gate rotates them, measurement squares them.
🔮 Open the quantum console →The whole of a qubit, with no mysticism
- Read the circuit — a start state and a gate or two.
- Predict the measurement odds: certain? a 50/50 coin? something surprising?
- Reveal the amplitudes and their squares — and see where your intuition was right.
The gates you will use
- X (NOT) swaps the two amplitudes — |0⟩ becomes |1⟩. Purely classical.
- H (Hadamard) spreads the amplitude evenly — |0⟩ becomes a 50/50 superposition. Apply it twice and it undoes itself: that is interference.
- Z (phase) flips the sign of the |1⟩ amplitude. Invisible to a single measurement — but it changes what later gates do.
- CNOT flips a second qubit only when the first is 1. Combine it with H and the two qubits become entangled: you only ever measure 00 or 11.