amazon-braket / autoqasm

AutoQASM is an experimental module offering a new quantum-imperative programming experience in Python for developing quantum programs.
Apache License 2.0
15 stars 9 forks source link

feat: Add @aq.hybrid_job decorator #21

Closed rmshaffer closed 5 months ago

rmshaffer commented 5 months ago

Issue #, if available: https://github.com/amazon-braket/autoqasm/issues/6

Description of changes: Porting @yitchen-tim's changes from https://github.com/amazon-braket/amazon-braket-sdk-python/pull/855 to the AutoQASM repo.

This includes the following changes as compared to the braket.jobs.hybrid_job decorator:

Testing done: Tests added to cover all new code.

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

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

codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (aebde14) to head (d1952ec). Report is 11 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #21 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 43 44 +1 Lines 1907 1991 +84 Branches 320 337 +17 ========================================= + Hits 1907 1991 +84 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

yitchen-tim commented 5 months ago

Thanks for refactoring the code old PR. The PR looks good to me and I updated the doc. Should we make it a regular PR and merge it?

laurencap commented 5 months ago

🙌 🎉