qec 0.2.7__py3-none-any.whl → 0.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- qec/code_instances/saved_codes/1.json +30 -0
- qec/code_instances/saved_codes/steane.json +34 -0
- qec/code_instances/saved_codes/test.json +1 -0
- {qec-0.2.7.dist-info → qec-0.3.0.dist-info}/METADATA +1 -1
- qec-0.3.0.dist-info/RECORD +9 -0
- qec/code_constructions/__init__.py +0 -3
- qec/code_constructions/css_code.py +0 -773
- qec/code_constructions/hgp_code.py +0 -308
- qec/code_constructions/stabilizer_code.py +0 -591
- qec/code_instances/__init__.py +0 -1
- qec/code_instances/five_qubit_code.py +0 -67
- qec/codetables_de/__init__.py +0 -1
- qec/codetables_de/codetables_de.py +0 -93
- qec/utils/__init__.py +0 -0
- qec/utils/binary_pauli_utils.py +0 -403
- qec/utils/codetables_de_utils.py +0 -274
- qec/utils/sparse_binary_utils.py +0 -64
- qec-0.2.7.dist-info/RECORD +0 -18
- {qec-0.2.7.dist-info → qec-0.3.0.dist-info}/LICENSE +0 -0
- {qec-0.2.7.dist-info → qec-0.3.0.dist-info}/WHEEL +0 -0
- {qec-0.2.7.dist-info → qec-0.3.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"class_name": "HypergraphProductCode",
|
3
|
+
"name": "Hypergraph product code",
|
4
|
+
"physical_qubit_count": 512,
|
5
|
+
"logical_qubit_count": 8,
|
6
|
+
"code_distance": 4,
|
7
|
+
"x_code_distance": 4,
|
8
|
+
"z_code_distance": 4,
|
9
|
+
"seed_matrix_1": {
|
10
|
+
"indices": [0, 1, 4, 5, 2, 6, 7, 12, 3, 4, 6, 13, 5, 8, 9, 15, 1, 7, 8, 11, 8, 12, 13, 14, 0, 7, 13, 15, 3, 5, 10, 12, 2, 3, 11, 15, 4, 9, 10, 11, 1, 6, 10, 14, 0, 2, 9, 14, 2, 3, 11, 15, 4, 5, 9, 10, 11, 1, 6, 10, 14, 0, 2, 8, 9, 14],
|
11
|
+
"indptr": [0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 57, 61, 66],
|
12
|
+
"shape": [16, 16]
|
13
|
+
},
|
14
|
+
"seed_matrix_2": {
|
15
|
+
"indices": [0, 1, 4, 5, 2, 6, 7, 12, 3, 4, 6, 13, 5, 8, 9, 15, 1, 7, 8, 11, 8, 12, 13, 14, 0, 7, 13, 15, 3, 5, 10, 12, 2, 3, 11, 15, 4, 9, 10, 11, 1, 6, 10, 14, 0, 2, 9, 14, 2, 3, 11, 15, 4, 5, 9, 10, 11, 1, 6, 10, 14, 0, 2, 8, 9, 14],
|
16
|
+
"indptr": [0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 57, 61, 66],
|
17
|
+
"shape": [16, 16]
|
18
|
+
},
|
19
|
+
"x_logical_operator_basis": {
|
20
|
+
"indices": [17, 20, 23, 26, 28, 29, 17, 19, 20, 23, 25, 28, 30, 31, 49, 52, 55, 58, 60, 61, 49, 51, 52, 55, 57, 60, 62, 63, 424, 488, 426, 490, 392, 456, 394, 458],
|
21
|
+
"indptr": [0, 6, 14, 20, 28, 30, 32, 34, 36],
|
22
|
+
"shape": [8, 512]
|
23
|
+
},
|
24
|
+
"z_logical_operator_basis": {
|
25
|
+
"indices": [17, 65, 113, 161, 193, 209, 19, 67, 115, 163, 195, 211, 17, 49, 65, 113, 145, 193, 225, 241, 19, 51, 67, 115, 147, 195, 227, 243, 394, 398, 392, 396, 426, 430, 424, 428],
|
26
|
+
"indptr": [0, 6, 12, 20, 28, 30, 32, 34, 36],
|
27
|
+
"shape": [8, 512]
|
28
|
+
},
|
29
|
+
"notes": ""
|
30
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"class_name": "CSSCode",
|
3
|
+
"name": "Steane",
|
4
|
+
"physical_qubit_count": 7,
|
5
|
+
"logical_qubit_count": 1,
|
6
|
+
"code_distance": 3,
|
7
|
+
"x_code_distance": 3,
|
8
|
+
"z_code_distance": 3,
|
9
|
+
"x_stabilizer_matrix": {
|
10
|
+
"data": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
11
|
+
"indices": [0, 3, 5, 6, 1, 3, 4, 6, 2, 4, 5, 6],
|
12
|
+
"indptr": [0, 4, 8, 12],
|
13
|
+
"shape": [3, 7]
|
14
|
+
},
|
15
|
+
"z_stabilizer_matrix": {
|
16
|
+
"data": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
|
17
|
+
"indices": [0, 3, 5, 6, 1, 3, 4, 6, 2, 4, 5, 6],
|
18
|
+
"indptr": [0, 4, 8, 12],
|
19
|
+
"shape": [3, 7]
|
20
|
+
},
|
21
|
+
"x_logical_operator_basis": {
|
22
|
+
"data": [1, 1, 1],
|
23
|
+
"indices": [0, 1, 3],
|
24
|
+
"indptr": [0, 3],
|
25
|
+
"shape": [1, 7]
|
26
|
+
},
|
27
|
+
"z_logical_operator_basis": {
|
28
|
+
"data": [1, 1, 1],
|
29
|
+
"indices": [0, 1, 3],
|
30
|
+
"indptr": [0, 3],
|
31
|
+
"shape": [1, 7]
|
32
|
+
},
|
33
|
+
"notes": "this is a test note"
|
34
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"hello": "world"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: qec
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.3.0
|
4
4
|
Summary: Python Tools for Quantum Error Correction
|
5
5
|
Author-email: Joschka Roffe <joschka@roffe.eu>, Tamas Noszko <T.K.Noszko@sms.ed.ac.uk>, Liam Veeder-Sweeney <L.D.Veeder-Sweeney@sms.ed.ac.uk>
|
6
6
|
License: MIT License
|
@@ -0,0 +1,9 @@
|
|
1
|
+
qec/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
+
qec/code_instances/saved_codes/1.json,sha256=whH698pYdPARAVomZOxoYerwW0IzaCOavL5KMIFuB9Y,1616
|
3
|
+
qec/code_instances/saved_codes/steane.json,sha256=Hx6TqeE8KHOL189fJG4eIekiuQvVLcltjbOCsN1mEPQ,930
|
4
|
+
qec/code_instances/saved_codes/test.json,sha256=X48E9qOokqqrvdts8nOJRJN3OWDUoyWxBf7kbu9DBPE,18
|
5
|
+
qec-0.3.0.dist-info/LICENSE,sha256=1b_xwNz1znYBfEaCL6pN2gNBAn8pQIjDRs_UhDp1EJI,1066
|
6
|
+
qec-0.3.0.dist-info/METADATA,sha256=FTk3YvEROBX7QuNFBAwjVkUVBs6mhED0j71y0W2jQMQ,4611
|
7
|
+
qec-0.3.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
8
|
+
qec-0.3.0.dist-info/top_level.txt,sha256=d8l_7pJ5u9uWdviNp0FUK-j8VPZqywkDek7qa4NDank,4
|
9
|
+
qec-0.3.0.dist-info/RECORD,,
|