Gate decomposition of n qubit Unitary matrices (Public Repo)
conda create -n quantumgd python=3.10 anaconda
conda activate quantumgd
python3 -m pip install numpy qiskit qiskit-aer scipy sympy
python3 scripts/gate-decompose.py
python3 scripts/gate-decompose-qsd.py
Here a unitary matrix operation U on n qubits is decomposed into simpler gates consiting of - two qubit CNOT and single qubit rotation gates. Two approaches are used here: Cosine-Sine Decomposition (CSD) and Quantum Shannon Decomposition (QSD)
script: gate-decompose.py, gate-decompose-qsd.py
References: