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] feature/autoqasm → main #613

Closed
wants to merge 142 commits into from
Closed

Conversation

rmshaffer
Copy link
Contributor

@rmshaffer rmshaffer commented Jul 11, 2023

This is a draft PR for the purpose of easily merging changes from main to feature/autoqasm 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 8 commits July 5, 2023 12:03
AutoQASM is an experimental module offering a new quantum-imperative programming experience embedded in Python for developing quantum programs.

Co-authored-by: Lauren Capelluto <[email protected]>
Co-authored-by: Ryan Shaffer <[email protected]>
Co-authored-by: Tim (Yi-Ting) <[email protected]>
… programs (#600)

* Move mcm=True argument into device.run

* Add comments explaining mcm=True kwarg
* Begin improving transpiler code coverage

* Code coverage for transpiler to 100%

* Remove unnecessary line

* Improve exception handling and test cases
* Update local simulator commit

* update simulator commit hash in tox

---------

Co-authored-by: Tim <[email protected]>
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (1ea24fb) 100.00% compared to head (94dd965) 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##              main      #613     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files          122       153     +31     
  Lines         8144      9224   +1080     
  Branches      1826      1992    +166     
===========================================
+ Hits          8144      9224   +1080     
Files Changed Coverage Δ
src/braket/experimental/autoqasm/constants.py 100.00% <ø> (ø)
...raket/experimental/autoqasm/converters/__init__.py 100.00% <ø> (ø)
...et/experimental/autoqasm/converters/assignments.py 100.00% <ø> (ø)
...perimental/autoqasm/converters/break_statements.py 100.00% <ø> (ø)
...erimental/autoqasm/converters/return_statements.py 100.00% <ø> (ø)
src/braket/experimental/autoqasm/errors.py 100.00% <ø> (ø)
...ket/experimental/autoqasm/instructions/__init__.py 100.00% <ø> (ø)
...braket/experimental/autoqasm/instructions/gates.py 100.00% <ø> (ø)
...experimental/autoqasm/instructions/instructions.py 100.00% <ø> (ø)
...experimental/autoqasm/instructions/measurements.py 100.00% <ø> (ø)
... and 24 more

☔ View full report in Codecov by Sentry.

📢 Have feedback on the report? Share it here.

rmshaffer and others added 21 commits July 17, 2023 10:41
* Enable multiprocessing for aq.function calls

* Add rx gate
* Change: update how num_qubits get supplied by autoqasm functions

* Update README

* Add test for mismatched num_qubits args
* add gates for notebook examples

* autoqasm example notebooks

* update example in readme

* update notebooks and readme

* minor change in mentioning qubit number

* update text

* update text for merge and for comments
* Handle unnamed return values properly

* Combine retval variable names

* Fix handling of recursive function return values

* Fix handling of return values from non-recursive functions

* Move new tests to test_types.py
* Raise error if the user puts a break in their autoqasm loop

* Update src/braket/experimental/autoqasm/converters/break_statements.py

Co-authored-by: Ryan Shaffer <[email protected]>

---------

Co-authored-by: Ryan Shaffer <[email protected]>
… point function (#661)

* Add error message for using 'return' from the main autoqasm function.

* Respond to CR
* change: improving autoqasm api.py coverage to 100%

* Update src/braket/experimental/autoqasm/api.py

---------

Co-authored-by: Ryan Shaffer <[email protected]>
rmshaffer and others added 28 commits February 19, 2024 13:44
* Fix returning expressions

* Fix output `bit`s size error

* Unmark as xfail tests that are now passing

* Remove unnecessary local var in program.py

Co-authored-by: Ryan Shaffer <[email protected]>
* maintenance: remove deadcode from autoqasm and bring coverage back to 100%
…ents (#892)

* documentation: Update example notebooks to use AutoQASM return statement.

Update return value default name to return_value from retval_
* feature: Support AutoQASM return statements for pulse.capture_v0 instruction
…ram (#918)

* Add aq.qubits to loop over global qubit register

* Move global_qubit_register to qubits module

* Initialize global qubit register size with num_qubits

* Move global_qubit_register into program conversion context

* Add GlobalQubitRegister class

* Update example notebooks to use aq.qubits() syntax

* Implement aq.qubits as module-level attribute
…958)

* Implement control, control_state, power gate modifiers

* Enable gate modifiers on custom gates

* Add prx gate

* Add physical qubit test case

* Update type checks

* Use BasisStateInput for control_state

* Simplify control_state logic

* Add docstrings and improve test parameterizations
@rmshaffer
Copy link
Contributor Author

Closing this PR as it is no longer needed. AutoQASM will be moving to a new repo at https://github.com/amazon-braket/autoqasm.

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

7 participants