Quantum Computing
Why classical scaling is ending, how a qubit is described (Dirac notation, Hilbert space, operators, Bloch sphere), how gates and circuits manipulate it, and how this translates into quantum-safe security, search and hardware decisions for clients.
What changes
| Aspect | Classical | Quantum |
|---|---|---|
| Physics | Classical laws | Quantum mechanics |
| Unit | Bit: 0 or 1 | Qubit: |ψ⟩ = α|0⟩ + β|1⟩, |α|² + |β|² = 1 |
| N-unit register | One of 2ᴺ states at a time | Superposition of all 2ᴺ basis states: 2^(−N/2) Σ|x⟩ |
| Reading out | Non-destructive | Measurement collapses to |0⟩ or |1⟩ with probability |α|², |β|² |
| Logic | Irreversible gates, FANIN/FANOUT allowed | Unitary (reversible) gates, no loops, no copying (no-cloning) |
Single-qubit state
Gates act on the current state: H creates superposition, S/T add relative phase, X/Y/Z rotate by π about their axes.
Bloch sphere
2×2 operator analysis
Enter complex entries as 0.7071, -i, 0.5+0.5i. The platform tests Hermitian / unitary / normal, computes eigenvalues and eigenvectors, and applies the operator to a ket.
From vectors to Hilbert space
- Linear vector space: kets |ψ⟩ that add and scale by complex numbers; a basis spans it, its size is the dimension.
- Dirac notation: ket |ψ⟩ is a column, bra ⟨ψ| = (|ψ⟩)† is its conjugate-transpose row; the inner product ⟨φ|ψ⟩ is a complex number.
- Norm ‖ψ‖ = √⟨ψ|ψ⟩; orthonormal basis: ⟨i|j⟩ = δᵢⱼ. A complete inner-product space is a Hilbert space.
- Operators map kets to kets; in a basis they are matrices Aij = ⟨i|A|j⟩. The adjoint A† is the conjugate transpose.
- Hermitian A = A† (real eigenvalues) · Unitary U†U = I (norm-preserving) · Normal AA† = A†A.
The rules every device obeys
- State: an isolated system is a unit vector in a Hilbert space.
- Evolution: closed systems evolve by unitary operators, |ψ(t)⟩ = U|ψ(0)⟩.
- Measurement: observables are Hermitian; outcome = eigenvalue λₘ with probability |⟨m|ψ⟩|², after which the state collapses to |m⟩.
- Composite systems: the joint space is the tensor product, |ψ⟩⊗|φ⟩.
- Global phase eiθ|ψ⟩ is unobservable; only relative phase matters.
Pauli matrices: X = [[0,1],[1,0]], Y = [[0,−i],[i,0]], Z = [[1,0],[0,−1]] — Hermitian and unitary, eigenvalues ±1.
Build a quantum circuit
Pick a gate, click a cell. Two-qubit gates: click the control, then the target in the same column. Click a placed gate to remove it.