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

Explore controlled_effect() semantics #15

Open
cognigami opened this issue May 25, 2022 · 0 comments
Open

Explore controlled_effect() semantics #15

cognigami opened this issue May 25, 2022 · 0 comments

Comments

@cognigami
Copy link
Collaborator

The semantics of quantum_if() might create a little confusion about its purpose[1], so we want to experiment with an expanded approach. If this new approach is successful, the quantum_if() method will probably survive as a shorthand for the expanded approach.

We'd like to add a controlled_effect() method:

  • Separate the control conditions, the controlling QuantumObject objects, and the controlled QuantumObject objects.
  • Vaguely: controlled_effect(conditions).from(QuantumObject, ...).to(QuantumObject, ...)
  • Returns a QuantumEffect

1: Thanks to @dstrain115 for PR #14, which tries to clarify the purpose of quantum_if().

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

No branches or pull requests

1 participant