-
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
Support multi-qubit measurements in deferred measurement transformer #5787
Conversation
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.
Are there any plans to provide a more explicit control on key conditions for a classically controlled operation? For example, can we say "Execute X(q0) only if measurement result of q1 and q0 is either both 0 or both 1" ? I guess this would require extending classically controlled operations to also accept control values?
It was a bit weird to see that the default strategy we are following for multi qubit classical controls is to activate the classical control on "anything but zeros". This can probably be a good first start, but I'm curious to hear if you've already thought on this.
A KeyCondition is triggered if it is non zero, which means at least one of the qubits it measured was non zero, which is equivalent to "anything but all zeros". To do more complex logic, you can use a SympyCondition
|
…uantumlib#5787) * Support multi-qubit measurements in deferred measurement transformer * mypy * invert if branch * docstring
…uantumlib#5787) * Support multi-qubit measurements in deferred measurement transformer * mypy * invert if branch * docstring
Use SumOfProducts to enable controls from multi-qubit measurements in deferred measurement transformer.
Fixes #5694