Expand description
Gate synthesis from unitary matrices
This module provides algorithms to decompose arbitrary unitary matrices into sequences of quantum gates, including:
- Single-qubit unitary decomposition (ZYZ, XYX, etc.)
- Two-qubit unitary decomposition (KAK/Cartan)
- General n-qubit synthesis using Cosine-Sine decomposition
Structs§
- Single
Qubit Decomposition - Result of single-qubit decomposition
Functions§
- decompose_
single_ qubit_ xyx - Decompose a single-qubit unitary into XYX rotations
- decompose_
single_ qubit_ zyz - Decompose a single-qubit unitary into ZYZ rotations
- decompose_
two_ qubit_ kak - Decompose a two-qubit unitary using KAK decomposition
- identify_
gate - Check if a unitary is close to a known gate
- kak_
to_ gates - Convert KAK decomposition to gate sequence
- single_
qubit_ gates - Convert single-qubit decomposition to gate sequence
- synthesize_
unitary - Synthesize an arbitrary unitary matrix into quantum gates
Type Aliases§
- KAKDecomposition
- Result of two-qubit KAK decomposition (alias for CartanDecomposition)