Single-qubit computational basis states
The two orthogonal z-basis states of a qubit are defined as:
- ∣0⟩
- ∣1⟩
When we talk about the qubit basis states we implicitly refer to the z-basis states as the computational basis states.
The two orthogonal x-basis states are:
∣+⟩=2∣0⟩+∣1⟩∣−⟩=2∣0⟩−∣1⟩
The two orthogonal y-basis states are:
∣R⟩=2∣0⟩+ı∣1⟩∣L⟩=2∣0⟩−ı∣1⟩
The basis states are located at opposite points on the Bloch sphere:
Multi-qubit computational basis states
A single-qubit has two computational basis states. In the z-basis these are ∣0⟩ and ∣1⟩. A two-qubit system has 4 computational basis states denoted as ∣00⟩, ∣01⟩, ∣10⟩, ∣11⟩.
A multi-qubit system of N qubits has 2N computational basis states denoted as ∣00...00⟩, ∣00⋯01⟩, ∣00⋯10⟩ ... ∣11⋯11⟩.
Probability amplitudes
Associated with each computational basis state is a probability amplitude αi, which is a complex number.
As an example, a system of three qubits is described by the expression:
∣Ψ⟩=α0∣000⟩+α1∣001⟩+α2∣010⟩+⋯+α7∣111⟩
where αi are the probability amplitudes associated to the computational basis states.
Initialization and measurement bases
By default, all qubits are initialized in the ∣0⟩ state in the z-basis.
State initialization in a specific basis can be done explicitly with the cQASM instructions prep_z
, prep_y
and prep_x
, which prepare qubits in the ∣0⟩, ∣R⟩ and ∣+⟩ states respectively.
By default, qubits are measured with the measure
or measure_all
instruction in the z-basis.
Qubit measurement in a specific basis can be done explicitly with the cQASM instructions measure_x
, measure_y
and measure_z
.
Declared states
- When a qubit is in the ∣0⟩ state (∣1⟩ state), a measurement in the z-basis will result in 0 (1)
- When a qubit is in the ∣R⟩ state (∣L⟩ state), a measurement in the y-basis will result in 0 (1)
- When a qubit is in the ∣+⟩ state (∣−⟩ state), a measurement in the x-basis will result in 0 (1)
Notes
∣R⟩ and ∣L⟩ stand for Right and Left. Other notations that are often used for these states are ∣ı⟩ and ∣−ı⟩.