Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stim integration in the CssCodeCircuit class #341

Merged

Conversation

hetenyib
Copy link
Contributor

(method) to_stim_circuit() generates the two stim circuits for the two logical '0' and '1' and an additional list of measurement data to be used by the get_counts_via_stim

(method) get_counts_via_stim() calls self.to_stim_circuit() to generate the stim circuit for one of the logicals ('0' by default) and generates sample strings in the qiskit format

@CLAassistant
Copy link

CLAassistant commented Mar 13, 2023

CLA assistant check
All committers have signed the CLA.

@quantumjim quantumjim merged commit a2fa6a4 into qiskit-community:339-integrate-stim Mar 13, 2023
grace-harper pushed a commit that referenced this pull request Jun 9, 2023
* 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 <55080156+hetenyib@users.noreply.github.com>
grace-harper pushed a commit that referenced this pull request Oct 2, 2023
* 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 <55080156+hetenyib@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants