Skip to content

Commit 6502bfe

Browse files
authored
remove quantum-pecos due to its dependency on numpy <2
1 parent dc63a36 commit 6502bfe

File tree

3 files changed

+0
-52
lines changed

3 files changed

+0
-52
lines changed

CondaPkg.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ ldpc = ">=2.2.8"
99
sinter = ">=1.14"
1010
stim = ">=1.14"
1111
fusion-blossom = ">=0.2.13"
12-
quantum-pecos = ">=0.2.0"
1312
panqec = ">=0.1.7"
1413
mwpf = ">=0.2.6"

README.md

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -133,53 +133,6 @@ julia> println("Minimum Weight Parity Subgraph (MWPS): ", subgraph)
133133
Minimum Weight Parity Subgraph (MWPS): [14, 24, 26, 34, 66, 68, 93, 107, 144, 159, 161, 169]
134134
```
135135

136-
## `pecos`
137-
138-
The python pecos module is immediately available:
139-
140-
```
141-
julia> using PyQDecoders
142-
143-
julia> PyQDecoders.pecos
144-
Python: <module 'pecos' from ...>
145-
```
146-
147-
Running the example from `pecos`'s [original example](https://quantum-pecos.readthedocs.io/en/latest/api_guide/decoders.html)
148-
on 2D version of minimum-weight-perfect-matching decoder:
149-
150-
```
151-
julia> using PyQDecoders: pecos, pecosdecoders
152-
153-
julia> depolar = pecos.error_gens.DepolarGen(model_level="code_capacity");
154-
155-
julia> surface = pecos.qeccs.Surface4444(distance=3);
156-
157-
julia> logic = pecos.circuits.LogicalCircuit();
158-
159-
julia> logic.append(surface.gate("ideal init |0>"));
160-
161-
julia> logic.append(surface.gate("I", num_syn_extract=1));
162-
163-
julia> circ_runner = pecos.circuit_runners.Standard(seed=1);
164-
165-
julia> state = pecos.simulators.SparseSim(surface.num_qudits);
166-
167-
julia> decode = pecosdecoders.MWPM2D(surface).decode;
168-
169-
julia> meas, err = circ_runner.run(state, logic, error_gen=depolar, error_params=Dict("p" => 0.1));
170-
171-
julia> print("Measurement outcomes (syndrome):", meas)
172-
Measurement outcomes (syndrome):{(1, 0, 7): {3: 1, 5: 1, 15: 1}}
173-
174-
julia> print("Errors introduced:", err)
175-
Errors introduced:{(1, 0, 0): {'after': QuantumCircuit(params={'circuit_type': 'faults'}, ticks=[{'Z': {4}, 'X': {10}}])}}
176-
177-
julia> recovery_circuit = decode(meas);
178-
179-
julia> print("Recovery circuit from MWPM2D decoder:", recovery_circuit)
180-
Recovery circuit from MWPM2D decoder:QuantumCircuit([{'Z': {4}, 'X': {10}}])
181-
```
182-
183136
## `panqec`
184137

185138
The python panqec module is immediately available:

src/PyQDecoders.jl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ const pm = PythonCall.pynew()
88
const ldpc = PythonCall.pynew()
99
const ldpccodes = PythonCall.pynew()
1010
const fb = PythonCall.pynew()
11-
const pecos = PythonCall.pynew()
12-
const pecosdecoders = PythonCall.pynew()
1311
const panqec = PythonCall.pynew()
1412
const panqeccodes = PythonCall.pynew()
1513
const panqecdecoders = PythonCall.pynew()
@@ -23,8 +21,6 @@ function __init__()
2321
PythonCall.pycopy!(ldpc, PythonCall.pyimport("ldpc"))
2422
PythonCall.pycopy!(ldpccodes, PythonCall.pyimport("ldpc.codes"))
2523
PythonCall.pycopy!(fb, PythonCall.pyimport("fusion_blossom"))
26-
PythonCall.pycopy!(pecos, PythonCall.pyimport("pecos"))
27-
PythonCall.pycopy!(pecosdecoders, PythonCall.pyimport("pecos.decoders"))
2824
PythonCall.pycopy!(panqec, PythonCall.pyimport("panqec"))
2925
PythonCall.pycopy!(panqeccodes, PythonCall.pyimport("panqec.codes"))
3026
PythonCall.pycopy!(panqecdecoders, PythonCall.pyimport("panqec.decoders"))

0 commit comments

Comments
 (0)