Skip to content

Commit

Permalink
339 integrate stim (#359)
Browse files Browse the repository at this point in the history
* Code circuit builder -> integrate stim (#340)

* create CodeCircuit class (#329) (#332)

* create CodeCircuit class

* add more detail to init

* add default is_cluster_neutral

* add css code circuit

* Adding two methods: 'to_stim_circuit' and 'get_counts_via_stim' (#1)

* Update css_code.py

* Update css_code.py

* Update css_code.py

* stim integration in the CssCodeCircuit class (#341)

* Update css_code.py

* Update css_code.py

* Update css_code.py

* add stim

* separate stim functions from class

* move stim tools to utils

* black and lint

* document stim tools

* document stim tools

* add general noisification of circuits

* add support for StabSubsystemCode

* conflict avoidance

* Update __init__.py

* fix conflict

* complete StabSubsystem compatibility

* Stim DecodingGraph (#356)

* decoding graph via stim

New methods: 
1) 'stim_circuit_with_detectors' converts the qiskit circuit to stim and appends detectors
2) '_make_syndrome_graph' creates a rustworkx graph and hyper edge list to be passed onto the DecodingGraph class

* qiskit style decoding graph from stim circuit

New function: 'detector_error_model_to_rx_graph' creates a qiskit style decoding graph from a stim circuit

* Update decoding_graph_attributes.py

* undo conflict fix

* undo conflict resolution (#358)

* Test (for CSS codes), black, lint, py39 tests (#361)

* black + lint

* Add files via upload

* Update stim_tools.py

* Update css_code.py

* Grace's change requests (#363)

1) stim repeat block is still needed
2) specify what noise model means

* per review

* Documentation and functions (#374)

* fix linting issues

---------

Co-authored-by: hetenyib <[email protected]>
  • Loading branch information
quantumjim and hetenyib authored Jun 9, 2023
1 parent 433c7b3 commit 51760ca
Show file tree
Hide file tree
Showing 7 changed files with 942 additions and 1 deletion.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ sympy>=1.9
numpy>=1.21.0
ipython
ipywidgets>=8.0.5
stim>=1.11.0
1 change: 1 addition & 0 deletions src/qiskit_qec/circuits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@
from .code_circuit import CodeCircuit
from .repetition_code import RepetitionCodeCircuit, ArcCircuit
from .surface_code import SurfaceCodeCircuit
from .css_code import CSSCodeCircuit
Loading

0 comments on commit 51760ca

Please sign in to comment.