Module decomposition

Source

Modules§

clifford_t
Clifford+T gate decomposition with optimal T-count
solovay_kitaev
Solovay-Kitaev algorithm for approximating arbitrary quantum gates
utils
Utility module for gate composition and decomposition

Structs§

CompositeGate
A generic composite gate that combines multiple gates into one

Traits§

GateComposable
Trait for gate composition
GateDecomposable
Trait for gate decomposition

Functions§

decompose_controlled_rotation
Decompose a controlled-rotation gate into single-qubit and CNOT gates
decompose_fredkin
Decompose a Fredkin (CSWAP) gate
decompose_swap
Decompose a SWAP gate into CNOTs
decompose_toffoli
Decompose a Toffoli (CCNOT) gate
decompose_u_gate
Decompose a U gate into RZ-RY-RZ Euler angle decomposition