Skip to content

Consistent Toffoli.controlled()#1771

Merged
mpharrigan merged 3 commits intoquantumlib:mainfrom
mpharrigan:2025-11/ctrl-x
Jan 6, 2026
Merged

Consistent Toffoli.controlled()#1771
mpharrigan merged 3 commits intoquantumlib:mainfrom
mpharrigan:2025-11/ctrl-x

Conversation

@mpharrigan
Copy link
Collaborator

This fixes the inconsistency raised in #1768

This is a step towards #1556 -- specifically, we now always return ControlledViaAnd(XGate(), ...) for all Toffoli cases (as well as for most cases with XGate(); but this PR does not change the behavior of CNOT)

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@mpharrigan mpharrigan merged commit a08fbe1 into quantumlib:main Jan 6, 2026
9 checks passed
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.

1 participant