Quantum Computing Basics

Qubits, superposition, entanglement and measurement in plain words.

A qubit can be 0, 1, or a mix of both (a superposition). Measuring it gives a plain 0 or 1, at random, with odds set by that mix.

The Hadamard gate (h) turns a 0 into an even mix: measured, it gives 0 or 1 half the time each.

Entanglement links qubits: the cx (CNOT) gate flips one qubit when another is 1. After h then cx, two qubits always agree when measured: that is the Bell pair.

Because each measurement is random, a circuit is run many times (shots) and the results are counted. The histogram on the Jobs page shows those counts.