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

Issue #247 - Replace execute with backend.run() in qiskit-qec #381

Conversation

robotAstray
Copy link
Contributor

@robotAstray robotAstray commented Aug 17, 2023

Summary:

This pull request aims to resolve issue #247 by replacing the outdated execute function with the more up-to-date backend.run method in the qiskit-qec codebase.

Details and comments:

  • Replaced the usage of execute with backend.run for simulating the quantum circuit.

Additional Notes:

The following files have been modified:

  • test/matching/test_circuitmatcher.py
  • test/matching/test_repetitionmatcher.py
  • src/qiskit_qec/analysis/faultsampler.py
  • src/qiskit_qec/analysis/faultenumerator.py
  • test/heavy_hex_codes/test_heavy_hex_decoder.py

@robotAstray robotAstray marked this pull request as ready for review August 17, 2023 11:18
@robotAstray
Copy link
Contributor Author

@grace-harper I have fixed #247 and it is ready for review

@robotAstray robotAstray changed the title Replace execute with backend.run() in qiskit-qec Issue 247 - Replace execute with backend.run() in qiskit-qec Aug 17, 2023
@robotAstray robotAstray changed the title Issue 247 - Replace execute with backend.run() in qiskit-qec Issue #247 - Replace execute with backend.run() in qiskit-qec Aug 17, 2023
@grace-harper grace-harper self-assigned this Aug 17, 2023
@robotAstray
Copy link
Contributor Author

Hello @grace-harper , I will look into the issues. Thank you

@robotAstray
Copy link
Contributor Author

Hello @grace-harper the test errors are related to a bug I identified and described in issue #380. I do not think is related to the work I did on issue #247. Regarding the lint/style check. I will fix those. Thank you.

@grace-harper grace-harper removed their assignment Sep 19, 2023
Copy link
Collaborator

@grace-harper grace-harper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@grace-harper grace-harper merged commit df2d2b0 into qiskit-community:main Sep 19, 2023
3 checks passed
grace-harper pushed a commit that referenced this pull request Sep 19, 2023
Fix a small bug (#384)

Co-authored-by: grace-harper <119029214+grace-harper@users.noreply.github.com>

Update README.md (#377)

Co-authored-by: grace-harper <119029214+grace-harper@users.noreply.github.com>

Issue #247 - Replace `execute` with `backend.run()` in `qiskit-qec` (#381)

* replace `execute` with `backend.run()` in `test_repetitionmatcher.py`

* replace `execute` with `backend.run()` in  `test_circuitmatcher.py`

* replace `execute` with `backend.run()` in  `test_heavy_hex_decoder.py`

* replace `execute` with `backend.run()` in `faultsampler.py`

* replace `execute` with `backend.run()` in `faultenumerator.py`

* formatting

* re-format test_repetitionmatcher.py

---------

Co-authored-by: grace-harper <119029214+grace-harper@users.noreply.github.com>

scrap
@robotAstray robotAstray deleted the replace-execute-with-backend.run branch September 19, 2023 19:47
grace-harper added a commit that referenced this pull request Oct 2, 2023
…381)

* replace `execute` with `backend.run()` in `test_repetitionmatcher.py`

* replace `execute` with `backend.run()` in  `test_circuitmatcher.py`

* replace `execute` with `backend.run()` in  `test_heavy_hex_decoder.py`

* replace `execute` with `backend.run()` in `faultsampler.py`

* replace `execute` with `backend.run()` in `faultenumerator.py`

* formatting

* re-format test_repetitionmatcher.py

---------

Co-authored-by: grace-harper <119029214+grace-harper@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.

2 participants