rigetti / rigetti/pyquil

Allow control-on-off for Gate.controlled()

Open
#853 0 comments 2 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.