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 Toffoli and Fredkin #220

Merged
merged 1 commit into from Apr 23, 2020

Conversation

corryvrequan
Copy link
Contributor

Toffoli and Fredkin gates are added to the collection of quantum gates.

Usage:

from qulacs.gate import TOFFOLI, FREDKIN
#toffoli = TOFFOLI(control1, controls2, target)
#fredkin = FREDKIN(control, target1, target2)

@corryvrequan
Copy link
Contributor Author

Since this is a simple feature implementation, this is self-merged.

@corryvrequan corryvrequan merged commit 5a0500d into qulacs:dev Apr 23, 2020
heliac2000 pushed a commit to heliac2000/qulacs that referenced this pull request Aug 21, 2020
m-ymzk added a commit to m-ymzk/qulacs that referenced this pull request Apr 16, 2023
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.

None yet

1 participant