Skip to content

[CQT-467] Add three-qubit gates CCX and CSWAP - #711

Open
SoufiTNO wants to merge 6 commits into
developfrom
CQT-467-add-three-qubit-gates
Open

[CQT-467] Add three-qubit gates CCX and CSWAP#711
SoufiTNO wants to merge 6 commits into
developfrom
CQT-467-add-three-qubit-gates

Conversation

@SoufiTNO

@SoufiTNO SoufiTNO commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

I added ThreeQubitGate with CCX (alias CCNOT) and CSWAP, a ThreeQubitGateDecomposer into CZ and single-qubit gates, and cQASM v1 export of the Toffoli gate.

The CCX decomposition uses 6 CZ gates, which Shende and Markov (2008) prove is minimal. CSWAP uses 8, but that's an upper bound only: the Fredkin CNOT-cost is still open. Both preserve global phase exactly.

@SoufiTNO SoufiTNO changed the title Cqt 467 Add three-qubit gates CCX and CSWAP [CQT-467] Add three-qubit gates CCX and CSWAP Sep 8, 2026
@SoufiTNO SoufiTNO self-assigned this Sep 8, 2026
@SoufiTNO
SoufiTNO requested a review from elenbaasc September 8, 2026 08:14
@SoufiTNO
SoufiTNO marked this pull request as ready for review September 8, 2026 08:38
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