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

Detect duplicate measurement keys #1687 #1862

Conversation

iamvamsikrishnad
Copy link
Collaborator

@iamvamsikrishnad iamvamsikrishnad commented Jul 23, 2019

Fixes #2152.

@googlebot googlebot added the cla: yes Makes googlebot stop complaining. label Jul 23, 2019
@iamvamsikrishnad iamvamsikrishnad requested review from Strilanc and dabacon and removed request for Strilanc July 23, 2019 14:01
@iamvamsikrishnad iamvamsikrishnad self-assigned this Jul 24, 2019
@iamvamsikrishnad iamvamsikrishnad requested review from Ashalynd and removed request for Ashalynd July 31, 2019 05:52
@iamvamsikrishnad iamvamsikrishnad added the Ready for Re-Review For when reviewers take their time. label Aug 1, 2019
@vtomole vtomole requested a review from viathor September 24, 2019 23:05
@vtomole
Copy link
Collaborator

vtomole commented Sep 24, 2019

@iamvamsikrishnad Please fix the merge conflicts.

@Strilanc Strilanc removed the Ready for Re-Review For when reviewers take their time. label Sep 25, 2019
raise ValueError('Measurement key {} repeated'.format(key))
seen.add(key)
return (self._measurement_duration, self._exp_w_duration,
self._exp_z_duration, self.qubits)
Copy link
Contributor

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():
Copy link
Contributor

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?

@vtomole
Copy link
Collaborator

vtomole commented Nov 4, 2019

Hey @iamvamsikrishnad. I want to get this in. Please address the requested changes.

@iamvamsikrishnad
Copy link
Collaborator Author

@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.

@vtomole
Copy link
Collaborator

vtomole commented Nov 18, 2019

@iamvamsikrishnad No problem. Take your time.

@iamvamsikrishnad
Copy link
Collaborator Author

I am closing this one and submitting a new PR, as this is quite old and some of the changes I feel are irrelevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Makes googlebot stop complaining.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate measurement keys don't raise exception
4 participants