Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
c99e8e6
📦 Add more structure for code examples/generators
MaxieHelenBichmann Jul 3, 2026
303d6ff
📦 factor out generation of product codes into central src/mqt/qecc/co…
MaxieHelenBichmann Jul 9, 2026
02f214e
📦 centralize hardcoded code instances
MaxieHelenBichmann Jul 9, 2026
9a4d735
📦 separate code generators from hardcoded code instances
MaxieHelenBichmann Jul 9, 2026
1bcce64
📦 remove specific code constructions from infra class CSSCode
MaxieHelenBichmann Jul 9, 2026
cd40146
🛠️ fix file extension
MaxieHelenBichmann Jul 9, 2026
32355ae
📦 remove unnecessary hardcoded code instances
MaxieHelenBichmann Jul 9, 2026
d69a12d
📦 add more structure do code constructions
MaxieHelenBichmann Jul 9, 2026
1a7533e
📦 Add basic tests to HGP codes
MaxieHelenBichmann Jul 9, 2026
79c3de6
📝 Adapt Analog Information Decoding Docs to refactor
MaxieHelenBichmann Jul 9, 2026
786b9aa
📦 Add more simple tests to 4D HGP code construction
MaxieHelenBichmann Jul 10, 2026
10aee1b
📦 increase test coverage
MaxieHelenBichmann Jul 10, 2026
6362fdd
♻️ Drop dead distance parameter from CSSCode.from_code_name
lsschmid Jul 13, 2026
644cd93
⚡ Build sparse zero blocks without materializing dense arrays
lsschmid Jul 13, 2026
ed44178
🎨 Use int32 consistently in sparse HGP constructors
lsschmid Jul 13, 2026
cc4618c
🩹 Make _sparse_all_zeros non-mutating
lsschmid Jul 13, 2026
e8674b2
📝 Clean up HGP module docstring and return comment
lsschmid Jul 13, 2026
b2bbbe8
🚚 Move HGP tests next to their new source location
lsschmid Jul 13, 2026
5e5f025
📝 Document the instances/ directory layout
lsschmid Jul 13, 2026
2244e71
✅ Add regression test for create_code's sparse 3D wiring
lsschmid Jul 13, 2026
13bed7a
Merge remote-tracking branch 'origin/main' into code-centralization
lsschmid Jul 13, 2026
6473c43
🩹 Guard bposd import in sparse code constructor test
lsschmid Jul 13, 2026
7372e73
🎨 pre-commit fixes
pre-commit-ci[bot] Jul 13, 2026
a585223
🩹 Fix ty lint errors after codes centralization
lsschmid Jul 13, 2026
2047693
🐛 Restore 'hamming' option in estimate_logical_error_rate script
lsschmid Jul 13, 2026
af0802a
📝 Polish HGP generator API and docs
lsschmid Jul 13, 2026
3eeb598
🩹 Narrow bposd import warning filter to SyntaxWarning
lsschmid Jul 13, 2026
bf70750
🐛 Fix bposd warning suppression on Python <= 3.11
lsschmid Jul 13, 2026
af9b08d
Merge remote-tracking branch 'origin/main' into code-centralization
lsschmid Jul 13, 2026
2f928f5
🔥 Remove accidentally committed test artifacts
lsschmid Jul 13, 2026
6605b63
🐛 Suppress bposd import warning by category, not message
lsschmid Jul 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,8 @@ node_modules/
wheelhouse/

pytest.ini

# Artifacts written to the repo root by some tests/examples
/res
/results/
/schedule_*.pkl
4 changes: 2 additions & 2 deletions docs/AnalogInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ The {code}`results` directory contains the results used in the paper {cite:label

## Codes

The {code}`codes` directory contains the parity-check matrices of the codes used in the paper {cite:labelpar}`berent2023analog`.
The parity-check matrices of the codes used in the paper {cite:labelpar}`berent2023analog` can be found in the directory {code}`src/mqt/qecc/codes/instances/lifted_product`.
Three dimensional toric codes can either be constructed with the hypergraph product construction
or with a library, e.g., panqec {cite:labelpar}`huang2023panceq`.

## Code construction

The {code}`code_construction` directory contains the code used to construct higher-dimensional hypergraph
product codes and used the {code}`compute_distances.sh` script to automatically compute bounds on the
product codes, utilizing the generator {code}`src/mqt/qecc/codes/constructions/hypergraph_product_code.py`, and used the {code}`compute_distances.sh` script to automatically compute bounds on the
distances of the constructed codes using the GAP library QDistRnd {cite:labelpar}`pryadko2023qdistrnd`.

## Utils
Expand Down
4 changes: 2 additions & 2 deletions docs/ExactSynthesis.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Let us synthesize an encoder for the $[[4,2,2]]$ iceberg code — a small CSS co

```{code-cell} ipython3
from mqt.qecc.codes import construct_iceberg_code
from mqt.qecc.codes.pauli import CheckMatrix
from mqt.qecc.codes.core.pauli import CheckMatrix

code = construct_iceberg_code(2) # [[4,2,2]] iceberg code
print(f"[[{code.n},{code.k},{code.distance}]] iceberg code")
Expand Down Expand Up @@ -97,7 +97,7 @@ For non-CSS stabilizer codes, encoding circuits are built from the full Clifford
The gate set for non-CSS synthesis defaults to $\{H, S, \text{CX}\}$ (standard Clifford). The extended gate set $\{H, S, \sqrt{X}, \text{CX}, \text{CZ}\}$ can find shorter circuits:

```{code-cell} ipython3
from mqt.qecc.codes.pauli import StabilizerTableau
from mqt.qecc.codes.core.pauli import StabilizerTableau
from mqt.qecc.circuit_synthesis.exact import get_clifford_extended_gate_set

stabs = ["XZZXI", "IXZZX", "XIXZZ", "ZXIXZ"]
Expand Down
2 changes: 1 addition & 1 deletion examples/add_new_gate_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
SymbolicGateOperation,
get_standard_clifford_gate_set,
)
from mqt.qecc.codes.pauli import StabilizerTableau
from mqt.qecc.codes.core.pauli import StabilizerTableau

if TYPE_CHECKING:
import numpy as np
Expand Down
109 changes: 0 additions & 109 deletions scripts/encoding_circuits/codes/css/108_8_10.txt

This file was deleted.

145 changes: 0 additions & 145 deletions scripts/encoding_circuits/codes/css/144_12_12.txt

This file was deleted.

15 changes: 0 additions & 15 deletions scripts/encoding_circuits/codes/css/15_1_3.txt

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/encoding_circuits/codes/css/15_7_3.txt

This file was deleted.

17 changes: 0 additions & 17 deletions scripts/encoding_circuits/codes/css/17_1_5.txt

This file was deleted.

19 changes: 0 additions & 19 deletions scripts/encoding_circuits/codes/css/19_1_5.txt

This file was deleted.

23 changes: 0 additions & 23 deletions scripts/encoding_circuits/codes/css/23_1_7.txt

This file was deleted.

31 changes: 0 additions & 31 deletions scripts/encoding_circuits/codes/css/31_1_7.txt

This file was deleted.

11 changes: 0 additions & 11 deletions scripts/encoding_circuits/codes/css/31_21_3.txt

This file was deleted.

37 changes: 0 additions & 37 deletions scripts/encoding_circuits/codes/css/37_1_7.txt

This file was deleted.

Loading