File size: 2,223 Bytes
88a30f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30efea7
 
 
 
 
 
 
 
 
 
 
 
88a30f2
 
 
 
30efea7
88a30f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
license: apache-2.0
task_categories:
  - other
tags:
  - quantum-error-correction
  - surface-code
  - willow
pretty_name: Willow Surface-Code Detection Events
configs:
  - config_name: default
    data_files: data/*.parquet
---

# Willow Surface-Code Detection Events (ingested)

Detection events and logical-observable flips derived from Google's Willow
below-threshold surface-code dataset (Zenodo
[10.5281/zenodo.13273331](https://doi.org/10.5281/zenodo.13273331)), rotated
surface code at distances 3, 5, 7 in X and Z memory.

Each row is one experimental **shot**. Detection events are derived from the raw
device measurement records with Stim's measurement-to-detector converter, using
the per-shot sweep bits, and validated to reproduce the dataset's shipped
`detection_events.b8` / `obs_flips_actual.b8` **byte-for-byte** for all
420 configurations.

## Columns

| column | type | meaning |
|---|---|---|
| `distance` | int16 | code distance d (3, 5, 7) |
| `basis` | string | `X` or `Z` memory |
| `rounds` | int16 | number of QEC cycles |
| `orientation` | string | patch location label on the chip (e.g. `q4_5`) |
| `shot` | int32 | shot index within the configuration |
| `detectors` | list<bool> | which detectors fired (length `num_detectors`, `= 2 * rounds * (d^2-1)/2`) |
| `observable` | bool | ground-truth logical flip the decoder must predict |

One Parquet shard per `(distance, orientation, basis, rounds)` configuration under
`data/`. The decoder sees only `detectors`; `observable` is the held-out answer key.

## Decoding bundle

Alongside the detection events, each config ships the inputs a decoder panel needs,
keyed by the same `<stem>` (`d{D}_at_{orient}__{basis}__r{rounds:03d}`):

- `circuits/<stem>.stim` — the ideal (noiseless) annotated circuit.
- `dems/<stem>.si1000.dem.gz` — shipped SI1000 detector error model (gzipped).
- `dems/<stem>.rl.dem.gz` — shipped RL-optimized detector error model (gzipped).

With these, the whole evaluation runs off this dataset with no local copy of the
12 GB Willow tree.

## Load

```python
from datasets import load_dataset
ds = load_dataset("ShayManor/willow-surface-code-detection-events", split="train")     # detection events
```