File size: 5,978 Bytes
d57fabf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
---
library_name: ising-decoding
tags:
  - quantum
  - qec
  - error_correction
  - decoders
  - surface_code
  - predecoder
license: apache-2.0
---

# Quantispect Overview

![Quantispect Neural Pre-Decoder Architecture](framework.png)

## Model Summary

| Item | Value |
|---|---:|
| Model name | Quantispect |
| Checkpoint file | `Quantispect_RF13_v1.0.10.pt` |
| Total parameters | ~0.663M |
| Checkpoint size | ~2.63 MB |
| Architecture | FastHyper-style 3D CNN neural pre-decoder |
| Receptive field | R=13 |
| Input tensor | `(B, 4, T, D, D)` |
| Output tensor | `(B, 4, T, D, D)` |
| Release date | April 26, 2026 |

## Description:

Quantispect is a compact neural pre-decoder for rotated surface-code quantum error correction. It consumes five-dimensional syndrome volumes across batch, channel, time, and two spatial dimensions, and predicts local correction maps that are consumed by a downstream global decoder such as MWPM / PyMatching or an Ising-decoding post-processing pipeline.

Quantispect is designed to run inside an NVIDIA Ising-Decoding-compatible workflow after applying the Quantispect code patch included with this model release.

## Model Architecture:

Architecture type: 3D Convolutional Neural Network (3D CNN)

Network architecture: custom multi-branch spatio-temporal 3D CNN with residual FastHyper blocks.

### Input

Input shape:

```text
(B, 4, T, D, D)
```

### Stem

```text
Conv3D 4 -> 96, kernel 3x3x3
GroupNorm
GELU
```

Stem output shape:

```text
(B, 96, T, D, D)
```

### Main Body

The main body contains five repeated `FastHyperBlock` modules:

```text
FastHyperBlock x5
```

Each `FastHyperBlock` first expands the feature width from 96 to 144 channels with a 1x1x1 convolution, then applies three parallel feature extraction branches:

```text
Pre-projection: GroupNorm -> 1x1x1 Conv3D, 96 -> 144 -> GELU

Branch A: Depthwise Conv3D, kernel 1x3x3, spatial branch
Branch B: Depthwise Conv3D, kernel 3x1x1, temporal branch
Branch C: GroupNorm -> Grouped Conv3D, kernel 3x3x3, groups=6, joint local spatio-temporal branch
```

The three branch outputs are aligned and fused by element-wise summation rather than channel concatenation. The fused feature is then projected and recalibrated:

```text
Element-wise sum fusion
1x1x1 Conv3D projection, 144 -> 96
GELU
ChannelGate / SE-style channel attention
Dropout3D
Residual connection
```

Main body output shape:

```text
(B, 96, T, D, D)
```

### Head

```text
GroupNorm
1x1x1 Conv3D, 96 -> 96
GELU
1x1x1 Conv3D, 96 -> 4
```

Output shape:

```text
(B, 4, T, D, D)
```

The output maps are used by the residual-syndrome construction module and then passed to MWPM / Ising-decoder post-processing.

## Usage:

Quantispect is intended to be used with the NVIDIA Ising-Decoding environment:

```text
https://github.com/NVIDIA/Ising-Decoding
```

A clean NVIDIA Ising-Decoding checkout does not natively know the Quantispect / FastHyper architecture. To run `Quantispect_RF13_v1.0.10.pt`, first apply the Quantispect code patch included in this model repository.


### Required code patch files

The patch package should preserve the following relative paths:

```text
quantispect_code_patch/
β”œβ”€β”€ conf/
β”‚   └── config_public.yaml
└── code/
    β”œβ”€β”€ model/
    β”‚   β”œβ”€β”€ predecoder_fasthyper_rf13_v1.py
    β”‚   β”œβ”€β”€ factory.py
    β”‚   └── registry.py
    β”œβ”€β”€ workflows/
    β”‚   β”œβ”€β”€ config_validator.py
    β”‚   └── run.py
    └── scripts/
        └── local_run.sh
```

These files should be copied into the NVIDIA Ising-Decoding repository with the same relative paths:

```text
conf/config_public.yaml                    -> Ising-Decoding/conf/config_public.yaml
code/model/predecoder_fasthyper_rf13_v1.py -> Ising-Decoding/code/model/predecoder_fasthyper_rf13_v1.py
code/model/factory.py                      -> Ising-Decoding/code/model/factory.py
code/model/registry.py                     -> Ising-Decoding/code/model/registry.py
code/workflows/config_validator.py         -> Ising-Decoding/code/workflows/config_validator.py
code/workflows/run.py                      -> Ising-Decoding/code/workflows/run.py
code/scripts/local_run.sh                  -> Ising-Decoding/code/scripts/local_run.sh
```

The patch mainly adds the `predecoder_fasthyper_rf13_v1` model implementation, registers `model_id: 6`, adds the Quantispect model hyperparameters to `config_public.yaml`, and enables explicit `.pt` checkpoint loading through `model_checkpoint_file`.

### Apply the patch

From the directory containing both the clean NVIDIA Ising-Decoding repository and this downloaded patch package:

```bash
cp -r code/* Ising-Decoding/code/
cp -r conf/* Ising-Decoding/conf/
```

Then place the Quantispect checkpoint under the repository model directory:

```bash
mkdir -p Ising-Decoding/models
cp Quantispect_RF13_v1.0.10.pt Ising-Decoding/models/Quantispect_RF13_v1.0.10.pt
```

Expected directory layout:

```text
Ising-Decoding/
β”œβ”€β”€ code/
β”‚   β”œβ”€β”€ model/
β”‚   β”‚   └── predecoder_fasthyper_rf13_v1.py
β”‚   β”œβ”€β”€ workflows/
β”‚   β”‚   β”œβ”€β”€ config_validator.py
β”‚   β”‚   └── run.py
β”‚   └── scripts/
β”‚       └── local_run.sh
β”œβ”€β”€ conf/
β”‚   └── config_public.yaml
β”œβ”€β”€ models/
β”‚   └── Quantispect_RF13_v1.0.10.pt
└── README.md
```

## Inference Deployment:

Configure the NVIDIA Ising-Decoding repository for inference, apply the Quantispect patch files above, and place the downloaded model checkpoint at `models/Quantispect_RF13_v1.0.10.pt`.

Run from the repository root:

```bash
cd Ising-Decoding

CUDA_VISIBLE_DEVICES=0,1,2,3 \
PYTHONUNBUFFERED=1 \
PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True \
WORKFLOW=inference \
EXPERIMENT_NAME=infer_quantispect \
TORCH_COMPILE=0 \
EXTRA_PARAMS="+model_checkpoint_file=models/Quantispect_RF13_v1.0.10.pt" \
bash code/scripts/local_run.sh \
2>&1 | tee infer_quantispect.log
```