@@ -133,53 +133,6 @@ julia> println("Minimum Weight Parity Subgraph (MWPS): ", subgraph)
133133Minimum 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
185138The python panqec module is immediately available:
0 commit comments