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

Add readme to clarify peek() and quantum_if behavior. #14

Merged
merged 2 commits into from
May 25, 2022

Conversation

dstrain115
Copy link
Collaborator

  • Add note that peek() with no arguments defaults to sampling
    the whole board.
  • Add a note that quantum_if effects can only apply to
    quantum effects and use the fancy term Stinespring's dilation.

- Add note that peek() with no arguments defaults to sampling
the whole board.
- Add a note that quantum_if effects can only apply to
quantum effects and use the fancy term Stinespring's dilation.
@dstrain115 dstrain115 requested review from cantwellc and cognigami May 24, 2022 17:27
@@ -123,6 +127,13 @@ We can also do a quantum if statement that applies an effect
only if a quantum object is a certain state. This manifests
in a "controlled" gate in the quantum world.

Note that a quantum if only applies to quantum effects. You
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider:
Note that a quantum_if() statement only controls quantum effects. You

@@ -123,6 +127,13 @@ We can also do a quantum if statement that applies an effect
only if a quantum object is a certain state. This manifests
in a "controlled" gate in the quantum world.

Note that a quantum if only applies to quantum effects. You
cannot put classical effects or imperative code as a controlled
effect of a quantum if. (In general, classical code, such as
Copy link
Collaborator

Choose a reason for hiding this comment

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

If you accept the above, then:
effect of a quantum_if(). (In general, classical code, such as

@dstrain115 dstrain115 merged commit 1d00e24 into quantumlib:main May 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants