Skip to content
This repository has been archived by the owner on Aug 21, 2024. It is now read-only.

Use R1 rather than Rz #146

Merged
merged 1 commit into from
Jul 13, 2019
Merged

Use R1 rather than Rz #146

merged 1 commit into from
Jul 13, 2019

Conversation

krusek
Copy link
Contributor

@krusek krusek commented Jul 13, 2019

R1 actually matches the requirements.

I know that the computer can't distinguish between the two and they are only differ by a global phase, but I think using Rz is confusing to people who are trying to learn.

R1 actually matches the requirements.
Copy link
Member

@tcNickolas tcNickolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, thank you! We should probably modify the testing harness for the tasks which require applying a unitary to validate a controlled version of the unitary (well, for the tasks which have controlled version) - this way the extra global phase will be recognized and rejected.

@tcNickolas tcNickolas merged commit bce8cb2 into microsoft:master Jul 13, 2019
tcNickolas added a commit that referenced this pull request Jul 15, 2019
As was pointed out in #146, task solutions which add extra global phase can be confusing for the learner. This change modifies the test harnesses for part I to check that the solutions do exactly the transformation required and to fail if the solution adds a global phase.
tcNickolas added a commit that referenced this pull request Jul 16, 2019
As was pointed out in #146, task solutions which add extra global phase can be confusing for the learner. This change modifies the test harnesses for part I to check that the solutions do exactly the transformation required and to fail if the solution adds a global phase.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants