Closed ashlhans closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 100.00%. Comparing base (
f556567
) to head (0bf0bb7
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Issue #, if available:
Description of changes: Currently, when a measure instruction is added in
braket_program_context.py
it is not added to the circuit'smeasure_targets
which results in measure instructions getting added twice.Changes made
addMeasure
will now add the qubit targets to the Circuit'smeasure_targets
To reproduce the issue this solves:
returns a ValidationException:
An error occurred (ValidationException) when calling the CreateQuantumTask operation: [line 16] qubit q[0] is already measured or captured. Cannot perform a new operation on it
since the measurements are added twice.Testing done:
tox
andtox -e integ-tests
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.