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

[do not merge] mcm-sim → main #198

Closed
wants to merge 33 commits into from
Closed

[do not merge] mcm-sim → main #198

wants to merge 33 commits into from

Conversation

rmshaffer
Copy link
Contributor

This is a draft PR for the purpose of easily merging changes from main to mcm-sim feature branch, and automatically running CI and code coverage on the feature branch. It is not intended to be merged.

Issue #, if available:

Description of changes:

Testing done:

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

General

Tests

  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have checked that my tests are not configured for a specific region or account (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

ajberdy and others added 18 commits May 24, 2023 13:24
* prepare release v1.14.0.post0

* update development version to v1.14.1.dev0

* infra: Don't run dependent tests and twine check on push (#160)

* infra: Dedicated code format check workflow (#161)

* feat: add optional third angle to MS gate (#163)

* prepare release v1.15.0

* update development version to v1.15.1.dev0

* infra: remove benchmark files (#171)

* infra: Only run Codecov check once (#172)

* feat: add support for python 3.11 (#173)

* prepare release v1.16.0

* update development version to v1.16.1.dev0

* infra: update team for CODEOWNERS (#181)

* fix: clamp indexing in scipy integration method (#180)

fixes #168 and #176 

* change the default solver from adams to bdf and the default order from 12 to 5

* forcing to use the last time step if goes out of the bound

* add a warning message when exceeding the bound

* resume adams as the default solver

* update per comments

* add test_get_hamiltonian to test the warning messages

---------

Co-authored-by: Mao Lin <[email protected]>

* fix: flip internal mapping for ctrl/negctrl (#182)

* feat: `AbstractProgramContext` interface (#174)

* feat: abstract program context (#162)

* refactor: make program context circuit generic

* change: Renaming to maintain backward compaitability

* change: Move noise operators to program context

* fix: black formattng

* change: Backward compaitability for noise operations

* fix: Fix code coverage in abstract methods

* change: Remove generic braket pragma

* fix: revert the user defined gate flag

* fix: fix is_built_in_gate funciton

* fix: Fix the number of args passed in a is_built_in_gate caller

* change: clean code

* fix: delete bell.qasm

* fix: unpack the args later

---------

Co-authored-by: sai_prakash chittampalli <[email protected]>

* feat: Fix program context (#170)

* change: Add unit tests (#175)

* change: revert argument in parse_braket_pragma

* change: program to circuit

* change: program to circuit

* change: lint

* documentation: Add documentation to the methods

* documentation: Add documentation to all the methods in program context

---------

Co-authored-by: sai_prakash chittampalli <[email protected]>
Co-authored-by: Cody Wang <[email protected]>
Co-authored-by: Aaron Berdy <[email protected]>

* prepare release v1.17.0

* update development version to v1.17.1.dev0

* feat: Allow prebuilt circuits in `ProgramContext` (#183)

* feat: physical qubits (#179)

* fix: progress bar of ahs simulator (#178)

* fix: Include `circuit` property in abstract context (#184)

* prepare release v1.18.0

* update development version to v1.18.1.dev0

* fix: Use op names for noise parsing (#185)

To avoid implementers having to use default simulator instruction classes

* prepare release v1.18.1

* update development version to v1.18.2.dev0

* infra: Remove SF plugin, add Python 3.11 to dependent tests (#186)

* fix: fix index time clamping bug (#187)

* fix a bug

* format

* handle the empty program

* fix max index time

* update

---------

Co-authored-by: Mao Lin <[email protected]>
Co-authored-by: Stephen Face <[email protected]>

* Update schema dependency to 1.18.0 (#188)

1.18.0 is required for Python 3.11 support

* prepare release v1.18.2

* update development version to v1.18.3.dev0

* Fixup merge conflict

---------

Co-authored-by: ci <ci>
Co-authored-by: Cody Wang <[email protected]>
Co-authored-by: Aaron Berdy <[email protected]>
Co-authored-by: Stephen Face <[email protected]>
Co-authored-by: Abe Coull <[email protected]>
Co-authored-by: maolinml <[email protected]>
Co-authored-by: Mao Lin <[email protected]>
Co-authored-by: Sai Prakash Ch <[email protected]>
Co-authored-by: sai_prakash chittampalli <[email protected]>
Co-authored-by: Will Yang <[email protected]>
@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

Attention: Patch coverage is 76.95853% with 50 lines in your changes missing coverage. Please review.

Project coverage is 98.72%. Comparing base (a4d7f98) to head (f05c6b5).
Report is 20 commits behind head on main.

Files Patch % Lines
...t/default_simulator/openqasm/native_interpreter.py 76.31% 14 Missing and 4 partials ⚠️
src/braket/default_simulator/linalg_utils.py 48.00% 13 Missing ⚠️
src/braket/default_simulator/simulator.py 31.25% 10 Missing and 1 partial ⚠️
...aket/default_simulator/openqasm/program_context.py 91.52% 2 Missing and 3 partials ⚠️
...ket/default_simulator/openqasm/_helpers/casting.py 85.71% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main     #198      +/-   ##
===========================================
- Coverage   100.00%   98.72%   -1.28%     
===========================================
  Files           48       49       +1     
  Lines         3712     3909     +197     
  Branches       889      938      +49     
===========================================
+ Hits          3712     3859     +147     
- Misses           0       42      +42     
- Partials         0        8       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rmshaffer rmshaffer closed this May 21, 2024
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.

4 participants