amazon-braket / amazon-braket-sdk-python

A Python SDK for interacting with quantum devices on Amazon Braket
https://aws.amazon.com/braket/
Apache License 2.0
294 stars 118 forks source link

change: Add test to check classical indices used in measurement are preserved between Circuit and OpenQASM Translations. #1013

Closed Altanali closed 1 week ago

Altanali commented 1 week ago

Issue #, if available:

Description of changes: Add a unit test to check that classical register indices supplied during qubit measurements are preserved when translating to and from Braket Circuits and OpenQASM 3.0.

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

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

codecov[bot] commented 1 week ago

Codecov Report

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

Project coverage is 100.00%. Comparing base (785d251) to head (f19b73a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1013 +/- ## ========================================= Coverage 100.00% 100.00% ========================================= Files 135 135 Lines 8948 8948 Branches 2010 2010 ========================================= Hits 8948 8948 ```

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