3 min read
What is a Qubit?
Classical bits vs. qubits, superposition, and how Qiskit represents quantum state.
Suggested before this lesson
A classical bit is always 0 or 1. A qubit can exist in a superposition of both states at once:
where . Measuring the qubit collapses it to with probability or with probability .
In Qiskit, a qubit always starts in the state:
Any single-qubit pure state can be drawn as a point on the surface of the Bloch sphere. The north pole is , the south pole is , and the equator holds equal-superposition states such as and .
The visualization below shows how the starting state sits at the north pole before any gates are applied.
State Amplitudes
Measurement Probabilities
100.0%
0.0%
Bloch Sphere
Python