Hacker News new | ask | show | jobs
by reikonomusha 2426 days ago
I would say you’ve implemented a state vector for a single qubit (when the norm = 1 and when equality is defined to be phase invariant, i.e., x and y are equal whenever there’s an ‘a’ such that e^(ia)x = y.), which can be written down notationally with a ket:

|s> = p|0> + q|1>

where p and q are complex, and |p|^2 + |q|^2 = 1. The ket is the notation |s>, |1>, and |0>, which could also be written purely as column vectors.

At the end it all depends on what you want to present. What will be the climax? Unitary evolution of a pure state? Superoperators on a mixed state? An introduction to linear algebra used in quantum computation and its notation?

In any case I’d present what a quantum state is on N qubits, which requires 2^N-element complex vectors that satisfy a few properties.