├── .github └── workflows │ ├── build.yml │ └── test.yml ├── .gitignore ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── pyproject.toml ├── src ├── __init__.py └── qec │ ├── __init__.py │ ├── code_constructions │ ├── __init__.py │ ├── css_code.py │ ├── hgp_code.py │ ├── periodic_surface_xzzx.py │ ├── rotated_xzzx.py │ ├── stabilizer_code.py │ ├── surface_code.py │ └── toric_code.py │ ├── code_instances │ ├── __init__.py │ ├── five_qubit_code.py │ └── saved_codes │ │ ├── 1.json │ │ ├── 2.json │ │ ├── 3.json │ │ └── 4.json │ ├── codetables_de │ ├── __init__.py │ └── codetables_de.py │ └── utils │ ├── __init__.py │ ├── binary_pauli_utils.py │ ├── codetables_de_utils.py │ ├── load_code_util.py │ └── sparse_binary_utils.py └── tests ├── __init__.py ├── code_constructions ├── test_css_code.py ├── test_hgp_code.py ├── test_periodic_surface_xzzx.py ├── test_rotated_xzzx.py ├── test_stabilizer_code.py ├── test_surface_code.py └── test_toric_code.py ├── code_instances └── test_five_qubit_code.py ├── codetables_de └── test_codetables_de.py └── utils ├── test_binary_pauli_utils.py ├── test_codetables_de_utils.py ├── test_load_code_util.py ├── test_sparse_binary_utils.py └── test_sparse_binary_utils_errors.py /.github/workflows/build.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/.github/workflows/build.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/.gitignore -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/README.md -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/qec/__init__.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /src/qec/code_constructions/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_constructions/__init__.py -------------------------------------------------------------------------------- /src/qec/code_constructions/css_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_constructions/css_code.py -------------------------------------------------------------------------------- /src/qec/code_constructions/hgp_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_constructions/hgp_code.py -------------------------------------------------------------------------------- /src/qec/code_constructions/periodic_surface_xzzx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_constructions/periodic_surface_xzzx.py -------------------------------------------------------------------------------- /src/qec/code_constructions/rotated_xzzx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_constructions/rotated_xzzx.py -------------------------------------------------------------------------------- /src/qec/code_constructions/stabilizer_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_constructions/stabilizer_code.py -------------------------------------------------------------------------------- /src/qec/code_constructions/surface_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_constructions/surface_code.py -------------------------------------------------------------------------------- /src/qec/code_constructions/toric_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_constructions/toric_code.py -------------------------------------------------------------------------------- /src/qec/code_instances/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_instances/__init__.py -------------------------------------------------------------------------------- /src/qec/code_instances/five_qubit_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_instances/five_qubit_code.py -------------------------------------------------------------------------------- /src/qec/code_instances/saved_codes/1.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_instances/saved_codes/1.json -------------------------------------------------------------------------------- /src/qec/code_instances/saved_codes/2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_instances/saved_codes/2.json -------------------------------------------------------------------------------- /src/qec/code_instances/saved_codes/3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_instances/saved_codes/3.json -------------------------------------------------------------------------------- /src/qec/code_instances/saved_codes/4.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/code_instances/saved_codes/4.json -------------------------------------------------------------------------------- /src/qec/codetables_de/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/codetables_de/__init__.py -------------------------------------------------------------------------------- /src/qec/codetables_de/codetables_de.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/codetables_de/codetables_de.py -------------------------------------------------------------------------------- /src/qec/utils/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/utils/__init__.py -------------------------------------------------------------------------------- /src/qec/utils/binary_pauli_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/utils/binary_pauli_utils.py -------------------------------------------------------------------------------- /src/qec/utils/codetables_de_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/utils/codetables_de_utils.py -------------------------------------------------------------------------------- /src/qec/utils/load_code_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/utils/load_code_util.py -------------------------------------------------------------------------------- /src/qec/utils/sparse_binary_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/src/qec/utils/sparse_binary_utils.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/code_constructions/test_css_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/code_constructions/test_css_code.py -------------------------------------------------------------------------------- /tests/code_constructions/test_hgp_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/code_constructions/test_hgp_code.py -------------------------------------------------------------------------------- /tests/code_constructions/test_periodic_surface_xzzx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/code_constructions/test_periodic_surface_xzzx.py -------------------------------------------------------------------------------- /tests/code_constructions/test_rotated_xzzx.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/code_constructions/test_rotated_xzzx.py -------------------------------------------------------------------------------- /tests/code_constructions/test_stabilizer_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/code_constructions/test_stabilizer_code.py -------------------------------------------------------------------------------- /tests/code_constructions/test_surface_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/code_constructions/test_surface_code.py -------------------------------------------------------------------------------- /tests/code_constructions/test_toric_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/code_constructions/test_toric_code.py -------------------------------------------------------------------------------- /tests/code_instances/test_five_qubit_code.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/code_instances/test_five_qubit_code.py -------------------------------------------------------------------------------- /tests/codetables_de/test_codetables_de.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/codetables_de/test_codetables_de.py -------------------------------------------------------------------------------- /tests/utils/test_binary_pauli_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/utils/test_binary_pauli_utils.py -------------------------------------------------------------------------------- /tests/utils/test_codetables_de_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/utils/test_codetables_de_utils.py -------------------------------------------------------------------------------- /tests/utils/test_load_code_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/utils/test_load_code_util.py -------------------------------------------------------------------------------- /tests/utils/test_sparse_binary_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qec-codes/qec/HEAD/tests/utils/test_sparse_binary_utils.py -------------------------------------------------------------------------------- /tests/utils/test_sparse_binary_utils_errors.py: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------