You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Circuit implementation of the [[16,4,4]] Tesseract subsystem color code [[1]](#references) in Stim, including encoding, error correction rounds and final measurements.
45
+
- Pre-generated stim circuit files for common operations (see [`stim_circuits/`](stim_circuits/README.md) directory).
45
46
- Simulation of an error correction experiment with configurable noise setting, rounds, shot and more.
46
47
- Plotting: sweeping of different parameters and obtaining acceptance rate and logical success rate.
This directory contains pre-generated stim circuit files for common tesseract code operations. These files can be used independently with stim.
4
+
**An important note** is that the calculation of the Pauli frame is not included in these files, since it is achieved by classical computation done using Python code, outside of the Stim runtime. This means that running these circuits will not do the actual correction at the end. Check the Python code for the complete implementation.
5
+
6
+
## Generated Files
7
+
8
+
### 1. Encoding Circuits
9
+
10
+
-**`encoding_9a.stim`** - Encoding circuit for the |++0000⟩ state (Fig 9a)
11
+
- 23 qubits total (16 data + 7 ancillas)
12
+
- Prepares the tesseract code in the |++0000⟩ logical state
13
+
14
+
-**`encoding_9b.stim`** - Encoding circuit for the |+0+0+0⟩ state (Fig 9b)
15
+
- 18 qubits total (16 data + 2 ancillas)
16
+
- Prepares the tesseract code in the |+0+0+0⟩ logical state
17
+
18
+
### 2. Error Correction
19
+
20
+
-**`error_correction_round.stim`** - Single round of error correction
21
+
- 18 qubits total (16 data + 2 ancillas)
22
+
- Measures stabilizers for both rows and columns
23
+
- Includes flagged syndrome extraction
24
+
25
+
### 3. Decoding
26
+
27
+
-**`decoding.stim`** - Final measurement and decoding by diving to two [[8,3,2]] color codes
28
+
- 18 qubits total (16 data + 2 ancillas)
29
+
- Splits the tesseract code into two [[8,3,2]] color codes
30
+
- Measures top half in X basis, bottom half in Z basis
31
+
32
+
### 4. Complete Experiments
33
+
34
+
-**`complete_experiment_9a.stim`** - Full experiment with 9a encoding
These files were generated using `generate_stim_files.py`, which uses the existing tesseract-code-stim Python implementation to build the circuits and export them to stim format.
108
+
109
+
To regenerate the files:
110
+
111
+
```bash
112
+
python stim_circuits/generate_stim_files.py
113
+
```
114
+
115
+
## Related Papers
116
+
117
+
- "Demonstration of quantum computation and error correction with a tesseract code" - http://arxiv.org/abs/2409.04628
118
+
- "The smallest interesting colour code" by Earl Campbell - https://earltcampbell.com/2016/09/26/the-smallest-interesting-colour-code/
0 commit comments