A classical bit can contain either 0 or 1; a quantum bit (qubit) can be in an intermediate state, which is neither 0 nor 1, or both at the same time, a superposition of the two states.
Mathematically modeled by:
with such that .
Thus, a qubit is described by a unit vector of a complex vector space of dimension 2.
is a ket in Dirac notation; think of a column vector .
is the corresponding bra , the dual vector; think of the line vector .
The notation takes on its full meaning when we note that is the usual inner product.
If we try to measure a qubit in state , using a device capable of distinguishing the two orthogonal states and , the result is random! We'll get:
Moreover, after the measurement, the qubit state becomes:
This is another specificity of quantum mechanics: observation irreversibly disturbs the system.
If we let where ,we have:
Since the factor (global phase) has no physical significance, we can assume . So any qubit is uniquely represented by:
with and .
The qubit is associated with the point on the unit sphere of with spherical coordinates ; this bijection leads to the representation known as the Bloch sphere:
Bloch sphere
The set of qubits is visualized using the unit sphere of .