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

Physics simulation for Qiskit circuits #165

Merged
merged 29 commits into from
Dec 29, 2021

Conversation

lazyoracle
Copy link
Member

@lazyoracle lazyoracle commented Dec 29, 2021

What

Physics simulation for Qiskit circuits

Why

Simulating qiskit circuits by solving full physical dynamics of the system model (incl of classical electronics and imperfections) provies an easy interface to the rich simulator of c3-toolset

How

Use the (now no longer) new methods for evaluating qasm representation of sequences

Remarks

Pending TODOs

c3/qiskit/c3_backend.py:275:        # TODO List correct set of basis gates
c3/qiskit/c3_backend.py:383:        # TODO (Check) Assume all qubits have same Hilbert dims
c3/qiskit/c3_backend.py:389:        # TODO set simulator seed, check qiskit python qasm simulator
c3/qiskit/c3_backend.py:422:        # TODO a more sophisticated readout/measurement routine
c3/qiskit/c3_backend.py:477:        # TODO Coupling map from config file
c3/qiskit/c3_backend.py:479:        # TODO Basis gates from config file
c3/qiskit/c3_backend.py:552:        # TODO only simulate qubits used in circuit
c3/qiskit/c3_backend.py:562:        # TODO (Check) Assume all qubits have same Hilbert dims
c3/qiskit/c3_backend.py:568:        # TODO set simulator seed, check qiskit python qasm simulator
c3/qiskit/c3_backend.py:578:        # TODO generate shots style readout ref Perfect Simulator
c3/qiskit/c3_backend.py:579:        # TODO a sophisticated readout/measurement routine (w/ SPAM)

Checklist

Please include and complete the following checklist. Your Pull Request is (in most cases) not ready for review until the following have been completed. You can create a draft PR while you are still completing the checklist. Check the Contribution Guidelines for more details. You can mark an item as complete with the - [x] prefix

  • Tests - Added unit tests for new code, regression tests for bugs and updated the integration tests if required
  • Formatting & Linting - black and flake8 have been used to ensure styling guidelines are met
  • Type Annotations - All new code has been type annotated in the function signatures using type hints
  • Docstrings - Docstrings have been provided for functions in the numpydoc style
  • Documentation - The tutorial style documentation has been updated to explain changes & new features
  • Notebooks - Example notebooks have been updated to incorporate changes and new features
  • Changelog - A short note on this PR has been added to the Upcoming Release section

@lazyoracle lazyoracle added this to the 1.4.1 milestone Dec 29, 2021
@lazyoracle lazyoracle added the enhancement New feature or request label Dec 29, 2021
@lazyoracle lazyoracle self-assigned this Dec 29, 2021
@lgtm-com
Copy link

lgtm-com bot commented Dec 29, 2021

This pull request fixes 2 alerts when merging 0370d01 into af38dae - view on LGTM.com

fixed alerts:

  • 2 for Unused local variable

@shaimach
Copy link
Collaborator

shaimach commented Dec 29, 2021 via email

@pull-request-size pull-request-size bot added size/L and removed size/M labels Dec 29, 2021
@codecov
Copy link

codecov bot commented Dec 29, 2021

Codecov Report

Merging #165 (eac7c24) into dev (af38dae) will increase coverage by 0.40%.
The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #165      +/-   ##
==========================================
+ Coverage   71.81%   72.22%   +0.40%     
==========================================
  Files          36       36              
  Lines        5475     5476       +1     
==========================================
+ Hits         3932     3955      +23     
+ Misses       1543     1521      -22     
Impacted Files Coverage Δ
c3/experiment.py 78.41% <ø> (+0.35%) ⬆️
c3/libraries/propagation.py 57.09% <0.00%> (ø)
c3/qiskit/c3_backend.py 89.78% <100.00%> (+10.86%) ⬆️
c3/qiskit/c3_backend_utils.py 60.71% <0.00%> (+1.78%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af38dae...eac7c24. Read the comment docs.

@lgtm-com
Copy link

lgtm-com bot commented Dec 29, 2021

This pull request fixes 2 alerts when merging 1ca3732 into af38dae - view on LGTM.com

fixed alerts:

  • 2 for Unused local variable

@lgtm-com
Copy link

lgtm-com bot commented Dec 29, 2021

This pull request fixes 2 alerts when merging d5da67f into af38dae - view on LGTM.com

fixed alerts:

  • 2 for Unused local variable

@lgtm-com
Copy link

lgtm-com bot commented Dec 29, 2021

This pull request fixes 2 alerts when merging eac7c24 into af38dae - view on LGTM.com

fixed alerts:

  • 2 for Unused local variable

@lazyoracle lazyoracle marked this pull request as ready for review December 29, 2021 14:19
@lazyoracle lazyoracle merged commit e72c752 into q-optimize:dev Dec 29, 2021
@lazyoracle lazyoracle mentioned this pull request Jan 2, 2022
17 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants