Allow control-on-off for Gate.controlled()
Open
@notmgsk is already working on this.
Since Mar 20, 2019.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 358
- Avg merge
- 1d 58m
- Merged PRs (30d)
- 4
Description
Currently Gate.controlled(0) will do something if the qubit 0 is in the 1-state. There is a common use-case where the opposite is desirable; i.e. do something if the control qubit is in the 0-state. This is equivalent to straddling Gate.controlled() with not-gates on the appropriate qubit.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.