CS639
Back to notesQubit workspace
Opening qubit workspace…
Opening qubit workspace…
ρ = (I + xX + yY + zZ)/2. The diagonal gives Z probabilities; off-diagonal terms carry coherence.
A ket has two complex amplitudes. After normalization and ignoring global phase, a pure state needs two angles on a sphere in three real dimensions. Mixed states lie inside.
Purity Tr(ρ²) = (1 + |r|²)/2: 1 for pure, ½ at the center.
Each click acts on the current state. Order matters.
Swap X and Z; reverse Y. H|0⟩ = |+⟩, H|+⟩ = |0⟩.
HH = XX = YY = ZZ = I. SS = Z; TT = S. HZH = X.
H exchanges X and Z information. It sends |0⟩ to |+⟩, but sends |+⟩ to |0⟩—the output is not always 50/50 in Z.
Ra(θ) = cos(θ/2)I − i sin(θ/2)σa. Unitary gates preserve norm and purity. A 360° rotation negates a ket; its Bloch point stays the same.