deskmerc/ quantum

A short introduction

Reading a quantum experiment.

A little background for the circuits, the measurements and the limits in this notebook.

Start with the measurement

A qubit has a state described by complex amplitudes. Gates change those amplitudes and their relative phases. A measurement in the usual Z basis gives a classical 0 or 1. Repeating a prepared circuit lets us estimate how often each outcome occurs.

One execution and readout is a shot. Most settings in this notebook use 256 shots. A count such as 222/256 records actual outcomes; a percentage is a rounded description of that count.

Superposition and interference

A Hadamard gate can prepare an equal superposition of zero and one. Relative phase matters: the plus and minus states have the same Z-basis probabilities, yet a second Hadamard sends them to different definite outputs. Interference turns phase differences into measurable probability differences.

The scheduling and period-finding experiments use that idea in larger circuits. A favorable-looking output still needs a control, classical verification and enough repeated samples to support an interpretation.

Entanglement

Some joint quantum states cannot be expressed as independent states of their parts. A Bell pair is a simple example. Its correlations depend on how the two qubits are measured. The first Bell run checks agreement in Z and X. The CHSH sweep combines four correlations into a witness with a local-hidden-variable bound of 2.

All runs here use qubits within one processor. Their measurements do not provide the separated stations required for a loophole-free locality experiment.

What teleportation moves

Teleportation transfers a quantum state using a shared entangled pair, two classical measurement bits and corrections at the receiver. The sender’s original state is consumed by measurement. The receiver needs the classical information to complete the protocol.

AliceInput state and one half of a Bell pair
Classical feedforwardTwo measured bits choose corrections
Bob, then CharlieReceive the state; SWAPs extend some routes

Alice, Bob and Charlie are roles assigned to physical qubits on the same chip in these experiments. No quantum connection between the three IBM processors was used.

Protecting a byte and protecting a qubit

A classical code adds check bits to a message. The Hamming–Golay comparison decodes measured binary strings to recover ASCII A. It tests protection against flips of the recorded bits.

An arbitrary qubit can also lose its relative phase. The six-state comparison includes X- and Y-axis inputs to probe that issue. Its detecting code can reject flagged shots; its Steane code interprets error checks to correct the final answer. Extra encoding, routing and decoding gates create extra opportunities for noise.

How to compare the numbers

Exact byte or word
Every required measured bit matches in the same shot.
Correct per attempt
Correct outcomes divided by all attempted shots. Rejected shots remain in the denominator.
Correct among kept
Correct outcomes divided by accepted shots. Always read the acceptance count beside this rate.
Fidelity and CHSH S
Estimates built from correlations. Their values have different meanings from exact-output success rates.
Ideal simulation
A model under its saved assumptions. A simulator record is not an additional hardware measurement.
Sampling uncertainty
Variation from a finite number of shots. Calibration drift, selection and systematic errors need separate consideration.

Three hardware targets

The experiment records identify Fez, Marrakesh and Kingston as 156-qubit Heron r2 processors. Circuits were prepared and analyzed locally with Qiskit and executed using IBM Quantum resources. Recorded versions, physical layouts and native gate tallies appear wherever the source files include them.

The original report’s diagnostic captures describe the hardware at the time of those experiments. They are historical snapshots.

Further reading

This primer follows IBM’s introductions to states, gates and measurement and teleportation. Experiment-specific definitions and controls come from the original reports and archived programs.