# Run notes: twenty-seven squares at once (Kickoff 12, Variants A and B)

This is a demonstration, not a discovery. Each square is the two-qubit encoding from Kickoff 03, so 27 squares at once means 54 qubits. What this run measures is whether a machine's errors on 54 qubits are independent of each other. Variant B, the 108-qubit wire (one excitation on four qubits per square), ran afterwards on the author's go. It has its own section below.

## Run record

| Field | Value |
|---|---|
| Date and time | 2026-09-26, submitted 17:14:42 UTC (13:14 EDT); IBM timestamps: created 17:14:44, running 17:14:46, finished 17:14:57 |
| Backend | ibm_fez. Least busy of the three; tied with ibm_marrakesh at 0 pending jobs, first of the tie taken (ibm_kingston had 9) |
| Job id | `darvr0rojkfs738omft0` (one job, four circuits) |
| Shots | 4000 per circuit |
| Wall time | 19 s end to end; 14 s from submit to result |
| QPU time charged | 6 s. Before this job, the account showed 32 s used of 600 in the period ending 2026-09-26 17:06 UTC |
| Hardware jobs this session | 2 of the 2 allowed: this one for Variant A, one for Variant B (below) |
| Calibration used for pairs | ibm_fez, last updated 2026-09-26 12:37 EDT |
| Python / qiskit / qiskit-ibm-runtime | 3.14.7 / 2.5.2 / 0.49.0, the same as Kickoff 03, nothing reinstalled |
| Sampler options | `default_shots` 4000; dynamical decoupling off; gate and measurement twirling off; no resilience or readout mitigation (SamplerV2 has none). Raw counts only |
| Layout | the 27 pairs fixed with `initial_layout`; the transpiler kept every one (checked before submitting and again at run time) |

Transpiled, optimisation level 3:

| Circuit | Depth | Two-qubit gates (CZ) |
|---|---|---|
| floor | 1 | 0 |
| transfer | 2 | 0 (RX(−π) compiles to one X per qubit) |
| in step | 7 | 27 |
| out of step | 7 | 27 |

## Changes from the kickoff, recorded

- **Simulators.** The kickoff asks for the statevector simulator in `--selfcheck` and the sampler simulator in `--ideal`. At 54 qubits a statevector has 2⁵⁴ amplitudes, so neither can run. All four circuits are Clifford, so both modes use `qiskit.quantum_info.StabilizerState`, which is exact at this size. The self-check found a largest deviation from the ideal of 0 (transfer, in step and out of step marginals and joints all exactly 1; out of step P(01) + P(10) exactly 0). The ideal run's 4000 shots gave joint_27 = 1.0000 for every circuit.
- **Bit order.** Checked before any job: flipping only qubit 0 of pair 5 and qubit 1 of pair 20 showed up in exactly those pairs and bits.
- **No Qiskit API calls changed**; `square_qubit_ibm.py --selfcheck` still passes (max error 4.44e-16, transfer 1.000000). `mala27_ibm.py` builds each pair exactly as Kickoff 03 does.
- **Kickoff 03's pair** was retrievable from its job: ibm_kingston qubits 10 and 11. This run is on ibm_fez, so the kickoff's "among the 27" check does not apply.

## Pair selection

Greedy by lowest reported two-qubit (CZ) error, ties by lowest summed readout error, no qubit in two pairs. CZ errors ran from 1.26e-3 to 2.21e-3. Readout error per qubit had a mean of 0.023, a median of 0.011 and a maximum of 0.159. Because the rule ranks by two-qubit error, which the transfer circuit does not use, it admitted several qubits with poor readout. Those pairs are the weakest marginals below. Full list in `pairs.json`.

## The numbers

1. **joint_27, transfer: 0.3045** (± 0.0073). Beside it: **product_27 = 0.3073**, and **0.9815²⁷ = 0.604**. The 0.60 prediction did not hold. It assumed every pair would be as good as the one Kickoff 03 measured; these pairs averaged 0.958.
2. **Transfer marginals: mean 0.9577, median 0.9640, min 0.8715 (pair 26, qubits 83 and 84), max 0.9892 (pair 14, qubits 94 and 95).** The five weakest pairs each include a qubit with reported readout error of 0.06 to 0.135.
3. **Independence gap: −0.0028 ± 0.0073.** The 27 pairs failed independently within one standard error. The whole distribution agrees too: shots with exactly 27, 26, 25, 24 and 23 pairs flipping were 0.3045, 0.3755, 0.2210, 0.0758 and 0.0188, against 0.3073, 0.3746, 0.2156, 0.0780 and 0.0200 for independent failures (`histogram27.png`). The other circuits agree within one standard error as well: floor −0.0056 ± 0.0079, in step +0.0048 ± 0.0067, out of step −0.0043 ± 0.0067.
4. **In step: mean P(01) + P(10) = 0.9474** (ideal 1). **Out of step: mean P(01) + P(10) = 0.0510** (ideal 0). **Floor: mean error 0.0280.** The dark state sits 0.023 above the floor. The floor circuit has no gates; the out-of-step circuit has a CZ and single-qubit gates on every pair.

## Interpretation (one sentence, as scoped)

On ibm_fez, all 27 squares flipped together in 0.3045 of shots against 0.3073 expected from independent failures; the 27 marginals ran from 0.8715 to 0.9892.

---

# Variant B: the wire, 108 qubits

One excitation on four qubits per square, run on the author's go after Variant A. The groups are 27 disjoint four-qubit paths q0-q1-q2-q3 on ibm_fez. H = −½ Σ (XX + YY) over the four edges, which is hopping on the four-cycle inside the one-excitation subspace. The particle starts on bead 1, |1000>, and the target is |0010> at t = π/2.

## Run record

| Field | Value |
|---|---|
| Date and time | 2026-09-26, submitted 17:19:33 UTC; IBM timestamps: created 17:19:34, running 17:19:37, finished 17:19:47 |
| Backend | ibm_fez (same as A; the groups were chosen from the calibration of 12:37 EDT) |
| Job id | `darvt9bojkfs738omimg` (one job: transfer and floor) |
| Shots | 4000 per circuit |
| Wall time | 20 s end to end; 14 s from submit to result |
| QPU time charged | 4 s (10 s for the session, A and B together) |
| Groups | 27 of 27 found, from 306 four-qubit paths on the chip; greedy by lowest summed CZ error along the path, ties by summed readout error; `groups.json` |
| Sampler options | as for A: raw counts, no mitigation, no twirling, no dynamical decoupling |
| Exchange gate | `XXPlusYYGate(θ, β = 0)`, which is exp(−iθ/4 (XX + YY)) in the installed Qiskit (checked against the matrix exponential), so a step dt on one edge is θ = −2 dt |

## Trotter steps, and why one is exact

The kickoff asks for the smallest n whose ideal transfer exceeds 0.99. That is n = 1, and its ideal transfer is 1.000000, not merely above 0.99. Within the one-excitation subspace, the two layers A = (q0q1, q2q3) and B = (q1q2, q3q0) act as the square's two perfect matchings, and those commute. So the product formula has no Trotter error: A(π/4) · B(π/2) · A(π/4) takes |1000> to −|0010> exactly. **The comparison line for B is therefore the ideal Trotter transfer at n = 1, which is 1.0000.** (`results108_ideal.json` holds the scan and the ideal per group; groups are identical and share no gate, so the ideal joint is 1.)

## What the routing cost

The edge q3q0 is not on the chip. A path's ends are three edges apart, and heavy-hex has no four-cycle. Transpiled at optimisation level 3 with the 108 qubits fixed by `initial_layout`:

| Circuit | Depth | CZ gates | Per group |
|---|---|---|---|
| transfer | 41 | 486 | 18 (the six exchanges need 12 unrouted; routing adds 6) |
| floor | 2 | 0 | 0 |

No gate touches a qubit outside the 108, and no two-qubit gate crosses between groups. Before the job, each group's transpiled circuit was simulated exactly on its own four qubits, routing and final permutation included. All 27 read |0010> with probability 1 to within 7e-16.

## The numbers

5. **Mean group transfer: 0.8108** against the ideal Trotter value of **1.0000**. Median 0.8323, min **0.5500 (group 26, qubits 46 to 49)**, max **0.9097 (group 2, qubits 140 to 143)**.
   - **joint_27: 0.0027 ± 0.0008**, which is 11 of 4000 shots. The product of the marginals is 0.0031, and the independence gap is −0.0003 ± 0.0008.
   - **Mean leakage** (a group reading a weight other than one): **0.1552** in the transfer circuit and 0.0570 in the floor.
   - **Floor:** mean P(1000) 0.9425, min 0.8698. Readout alone accounts for about 0.06 of the loss; the other roughly 0.13 comes in during the 41 layers of gates.
6. **A check beyond the kickoff, on independence.** The joint is too small for the gap to detect correlation, so here is the spread of k, the number of groups transferring in the same shot. Measured variance 4.378 ± 0.105 (bootstrap, 400 resamples), against 4.009 for independent failures with the same marginals: about 3.5 standard errors wide, so failures across groups cluster mildly in this circuit. The mean agrees exactly (21.892 against 21.892) and the histogram's shape follows the independent curve closely (`histogram108.png`). The same check on Variant A gives 1.056 ± 0.027 against 1.073, consistent with independence. This is reported as a measured difference, not explained.

## Interpretation (one sentence, as scoped)

One excitation on four qubits transferred in 0.8108 of shots per group against an ideal of 1.0000; all 27 at once in 0.0027.

## The runner's predictions

`predictions-27.md`, SHA-256 `f6515f6826dea102846f5abf14d44c3632a4ef3e9cad99a25d915d02e91ae7b3`, hashed 2026-09-26T17:14:21Z, before the job was submitted at 17:14:42. Unchanged since; the hash was rechecked after the run. **Not independent:** they were written after the runner read the author's sealed predictions by mistake, and the file says so on its first line. Marked without editing:

| # | Predicted | Measured | Mark |
|---|---|---|---|
| 1 | joint_27 0.27, range 0.18 to 0.38 | 0.3045 | held (inside the range; the point was 0.03 low) |
| 2 | gap +0.01, range −0.01 to +0.03, sign positive | −0.0028 | the range held; the sign failed |
| 3 | mean marginal 0.955 (no range stated) | 0.9577 | failed as stated: point value, 0.003 low |
| 4 | spread 0.15 (no range stated) | 0.1177 | failed: 0.032 high |
| 5 | out of step 0.045 (no range stated) | 0.0510 | failed as stated: point value, 0.006 low |

Predictions 3 to 5 gave no tolerance, so they cannot be scored as held. The distances are stated so the reader can judge.

### Variant B

`predictions-108.md`, SHA-256 `896dd8ff6fc2e546d097b2fda792a112be7c62cf2a24a9b52fa613a6320bcc71`, hashed 2026-09-26T17:19:23Z, before the Variant B job was submitted at 17:19:33. It is contaminated in the same way; the file says so on its first line.

| # | Predicted | Measured | Mark |
|---|---|---|---|
| 6 | mean group transfer 0.80, range 0.72 to 0.87 | 0.8108 | held |
| 7 | joint_27 0.003, range 0 to 0.015 | 0.0027 | held |

## Files

`mala27_ibm.py` (both variants), `pairs.json`, `groups.json`, `predictions-27.md`, `predictions-108.md` and their `.sha256` files, `results27.json`, `results27_ideal.json`, `results108.json`, `results108_ideal.json` (raw counts per circuit and every number above), `histogram27.png`, `histogram27_ideal.png`, `histogram108.png`, and `hardware-run-27.txt` and `hardware-run-108.txt` (console output). No key or account details are in any file.
