Quantum diary, day 1: two qubits that always agree
The first thing I sent to the quantum computer, what came back, and what it costs. Written for people who build apps and websites, not for physicists.

First, what is a qubit?
In your code a bool is true or false, and you can read it as often as you like.
A qubit is more like a coin spinning in the air. While it spins it isn't heads or tails yet. It only has odds. When you measure it, the coin lands, you get a 0 or a 1, and the spin is gone.
That has a strange effect on how you program. You can't print a qubit to see what's inside. You can only measure it, and one measurement gives you one random 0 or 1. So you run the same program many times and count the results. A quantum program gives you a histogram, not a value.
On PIAST-Q, the machine I got access to, each qubit is one calcium atom, held in place in a vacuum by an electric field. Lasers flip it and twist it. To read it, another laser shines on it: in one state the atom glows, in the other it stays dark, and a camera sees which.
What I sent
Two qubits and three steps:
- Spin the first coin. Qubit 0 gets 50/50 odds of 0 or 1.
- Link the second coin to the first. In code it reads like
if (a) b = !b. Butahasn't landed yet, so this runs on both outcomes at once. After this step the two qubits no longer have separate states. They share one: "both 0 or both 1". Physicists call this entanglement. - Measure both.
This is the whole program, in Python with Qiskit:
circuit = QuantumCircuit(2)
circuit.h(0) # spin the first coin
circuit.cx(0, 1) # link the second one to it
circuit.measure_all()
job = backend.run(transpile(circuit, backend), shots=200)
The machine doesn't understand h or cx. Qiskit compiles them into the laser pulses the machine can do, the same way a compiler turns your code into processor instructions. Then the job goes through a VPN to the computing centre in Poznań, waits in a queue and comes back with the results.
What came back
On a perfect machine I'd get about 100 "00", about 100 "11", and never a "01" or "10". Any "01" or "10" is the machine making a mistake.
| Result | Times | Verdict |
|---|---|---|
| 00 | 82 | correct |
| 01 | 1 | mistake |
| 10 | 2 | mistake |
| 11 | 115 | correct |
197 out of 200 were correct, which is 98.5%. The simulator on my laptop, set up with the machine's typical error rates, gave 98%. So the machine does about what it says on the box.
One thing I'm watching: 115 against 82 is more lopsided than I'd expect from chance. It may mean the machine leans a little towards reading a 1. A later test measures exactly that.
What it cost
I have 12 hours of machine time for 3 months. This job used 18.5 seconds, or about 0.04% of it. That's roughly 92 milliseconds per run, most of it spent preparing and reading the atoms, not computing. If that holds, the whole 21-day plan fits in a couple of hours. I only have one data point so far, so I'll confirm it with a bigger job.
What this doesn't prove
My laptop can fake this exact histogram in two lines of JavaScript:
const a = Math.random() < 0.5 ? 1 : 0;
const b = a; // "00" or "11", 50/50
The difference is hidden. In the JavaScript version a has a value from the start and b is a copy. In the quantum version neither has a value until you measure. You can see that difference when you measure the two qubits from different angles. That's the Bell test, and it's one of the next experiments. Today was about checking that everything works end to end: account, VPN, API, queue, results, and how often the machine gets it wrong.
What's next
Tomorrow: true randomness. Math.random() is a formula, and if you know where it started you know every number it will give. An atom doesn't work like that. After that, the main thread of the series: planning a working day on the quantum computer, which is the problem my EuroHPC proposal is about.