Skip to content

Commit 2c7b8ef

Browse files
committed
Baseline python version.
1 parent 37bc3fc commit 2c7b8ef

File tree

6 files changed

+1163
-810
lines changed

6 files changed

+1163
-810
lines changed

README.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,22 @@ Pipecleaning test for MSc project.
33

44
The initial test was to check the basic connectivity.
55

6-
The "Steane_code_with_two_logical_qubits.ipynb" file is a more extensive test.
7-
6+
The "Steane_code_old.ipynb" file is a more extensive test with the qubit codes keyed in.
87
It sets up two logical qubits in the Steane code and then entangles them with a logical Hadamard and a logical CX.
98

10-
An appropriate noise model is applied.
9+
The Steane_code.ipynb" file is the most recent version. It uses the circuits.py code. The Jupyter workbook calls methods in the SteaneCodeLogicalQubit python class:
10+
- validate the parity check matrix
11+
- initialise the qubits needed to build one or two logical qubits
12+
- set up a logical zero
13+
- force in correct X or Y errors
14+
- set up ancillas
15+
- correct errors found in the ancilla. NB at present errors can only be corrected if one qubit is simulated due to memory constaints.
16+
- apply logical gates:
17+
- X or it flip
18+
- Hadamard
19+
- CNOT
20+
- decode the qubit
21+
22+
An appropriate noise model is applied in both cases.
23+
24+
An incomplete testing framework is in place and will be enhanced. Documentation is not yet complete.

Steane_code.ipynb

Lines changed: 233 additions & 42 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)