-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Detect duplicate measurement keys #1687 #1862
Detect duplicate measurement keys #1687 #1862
Conversation
@iamvamsikrishnad Please fix the merge conflicts. |
raise ValueError('Measurement key {} repeated'.format(key)) | ||
seen.add(key) | ||
return (self._measurement_duration, self._exp_w_duration, | ||
self._exp_z_duration, self.qubits) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised the formatter lets lack of trailing newlines through
@@ -227,31 +227,6 @@ def test_validate_scheduled_operation_not_adjacent_exp_11_exp_w(): | |||
d.validate_schedule(s) | |||
|
|||
|
|||
def test_validate_circuit_repeat_measurement_keys(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this test removed with no test being added to e.g. circuit_test.py to compensate? What is checking that we detect dupes?
Hey @iamvamsikrishnad. I want to get this in. Please address the requested changes. |
@vtomole : I will take a look at this after 2 weeks, as I busy with something else now. Please let me know if you need it in a shorter time. |
@iamvamsikrishnad No problem. Take your time. |
I am closing this one and submitting a new PR, as this is quite old and some of the changes I feel are irrelevant. |
Fixes #2152.