Suhas Vittal
Poulami Das
Moinuddin Qureshi
Accurate Quantum Error-Decoding via Practical Minimum-Weight Perfect-Matching
Astrea
International Symposium on Computer Architecture (ISCA) 2023
Quantum Applications Need Low Error Rates
Hardware errors create a gap between applications and devices.
2
2023
2026
203X
~400 qubits
p = 0.5%
~4000 qubits
p = 0.1%
~100K qubits
p = 0.01%
Goal
Applications-at-scale
p < 10-15
Significant gap in error rates!
Quantum Error Correction
QEC prevents errors by repeated performing syndrome extraction.
3
Logical
Qubit
X
Z
Z
Syndrome Extraction
Decoder
X Syndrome: 0000
Z Syndrome: 1010
Correction
1
1
0
Reducing the Logical Error Rate
We need accurate decoders to get the best performance!
4
17
Code Distance (d)
49
97
161
LER
3
5
7
9
Accurate Decoding
Inaccurate Decoding
Real-Time Decoding
We must decode syndromes in real-time to suppress errors!
5
Distance 5 Surface Code
Google, 2023
Distance 3 Surface Code
Wallraff Group, 2022
Offline Decoding
Real-Time Decoder
~1μs
The Last 21 Years of Real-Time Decoding
We propose Astrea to achieve this goal.
6
Latency
Accuracy
MWPM
2002
UF
2017
NISQ+
ISCA
2020
HPCA
2022
AFS
HPCA 2022
Clique
QULATIS
Ideal
ASPLOS
2023
100x to 100,000x worse
Astrea: Outline
Astrea: Insights, Design, and Results
What is Real-Time Decoding?
Astrea-G: Insights, Design, and Results
Accurate Quantum Error Decoding
Only handling one or two errors is rather underwhelming. Can we do better?
8
High Latency,
Low Overhead
Low Latency,
High Overhead
| |
| |
| |
LILLIPUT can only handle one/two errors
(LILLIPUT)
Minimum-Weight Perfect Matching Decoding
How can we identify the MWPM for a syndrome in real-time?
9
a
b
d
c
Pair bits and minimize ΣW
a
b
d
c
MWPM
Nonzero Syndrome Bits
W = -log(Perror)
96% of syndromes not decodable
Hard to implement in real-time
Let’s Try an Exhaustive Search!
Insight 1: Low HW syndromes are easy to decode accurately.
The number of perfect matchings scales O(eHW).
10
Look at small HW.
a
b
Only one option
c
d
e
f
Three options
i
j
k
x
y
z
= 15 options
5
* 3
* 1
Easy for exhaustive search
What do we need to decode?
Insight 2: It suffices to only decode HW ≤ 10 up to d = 7.
11
Hamming weight (HW)* | d = 3 | d = 5 | d = 7 |
0 to 2 | 0.99 | 0.99 | 0.99 |
3 to 6 | 4e-5 | 3e-5 | 0.01 |
7 to 10 | 0 | 2e-7 | 2e-6 |
>10 | 0 | 0 | 4e-9 |
Logical error rate (LER) | 8.1e-6 | 1.3e-7 | 6e-9 |
*at p = 10-4
P(HW > 10) < LER
Decoding HW 6 and Below with Astrea
Astrea can quickly decode syndromes with HW ≤ 6 in 32ns.
12
d
a
b
c
y
x
HW ≤6 = ≤32ns
MWPM
Decoding HW 8 with Astrea
Astrea pre-matches a pair of bits to decode HW 8.
13
d
a
b
c
x
y
HW ≤6 = ≤32ns
z
w
PM1
PM2
PM3
PM4
PM5
PM6
PM7
MWPM
min
HW 8 = 60ns
HW 8 Decoder
Decoding HW 8 with Astrea
Astrea pre-matches a pair of bits to decode HW 8.
14
HW ≤6 = ≤32ns
HW 8 = 60ns
HW 8 Decoder
Decoding HW 10 with Astrea
Astrea accurately decodes d = 7 in real-time with only 10% of the FPGA.
15
HW ≤6 = ≤32ns
HW 8 = 60ns
HW 8 Decoder
e
a
b
c
d
x
y
z
u
v
HW 10 = 456ns
PM1
PM9
........
MWPM
Astrea: Outline
Astrea-G: Insights, Design, and Results
What is Real-Time Decoding?
Astrea: Insights, Design, and Results
Coping with Larger Search Spaces
Insight 1: Filter out large weights to reduce search space.
#17
a
Hamming weight = 16
~2M possible matchings!
Perror = 10-weight
Filter!
< LER
~2000 matchings
Finding the MWPM after Filtering
Insight 2: Prioritize lowest weights first to quickly find MWPM.
18
Bits left:
16
14
12
10
8
6
Pre-matching
+
HW 6 MWPM
0
PM
MWPM
Astrea-G: Design
Astrea-G is the first decoder to accurately decode d = 9 in real-time!
19
Filter out if w > WTH
15
8
4
2 | 15 | 4 | 6 |
15 | 8 | 14 | 8 |
4 | 14 | 13 | 15 |
6 | 8 | 15 | 12 |
Greedy
Pre-match
+
Global Weight Table
MWPM Register
HW ≤ 6?
t = 1μs
STOP!
Minimum
40% FPGA Utilization
Conclusion
1. Quantum error correction is necessary for applications at scale.
20
2. Quantum fault-tolerance requires real-time decoding
Astrea/Astrea-G are the first real-time decoders with near-ideal accuracy up-to d = 9.
Astrea Redefines the Trend!
21
Latency
Accuracy
MWPM
2002
UF
2017
NISQ+
ISCA
2020
HPCA
2022
AFS
HPCA 2022
Clique
QULATIS
Ideal
ASPLOS
2023
Astrea
ISCA
2023
BACKUP SLIDES BEGIN HERE
22
Astrea: Results
Astrea enables near-ideal real-time decoding up to d = 7 at low-cost.
23
Resource | Utilization |
LUT | 5.6% |
FF | 0.9% |
BRAM | 9.6% |
Astrea-G: Results for d = 7 and d = 9
Astrea-G has comparable accuracy to MWPM in real-time.
24
Equal accuracy to MWPM for d = 7
Within 2.5x of MWPM for d = 9
Astrea-G Beyond d = 9
25
Code Distance (d) | MWPM LER | Astrea-G LER |
7 | 4.6e-10 | 4.6e-10 |
9 | 1.2e-11 | 1.2e-11 |
11 | 1.7e-14 | 2.9e-13 |
Impact of WTH on Performance
Higher WTH yields better accuracy at the cost of higher latency.
26
Default
-log(LER)
Lower Latency
Lower Error
Astrea-G under Tighter Constraints
Astrea-G can operate below the standard 1μs constraint.
27
Time to Decode (μs) | Relative Logical Error Rate |
1 | 1.0x |
0.8 | 1.0x |
0.6 | 1.08x |
0.5 | 1.33x |
Extra time for:
Recent Software MWPM Implementations
There have been recent papers demonstrating fast versions of MWPM. These papers collectively have the following limitations:
Astrea/Astrea-G are both able to decode all rounds within 1μs.
Astrea/Astrea-G have worst-case latencies of 1μs.
28