Experiment using tensor networks to check quantum circuits for equivalence.
Uses GeneralBraOpKet from the pytket-cutensornet library. At the moment executing the main.py
script requires GPUs.
- Check unitary equivalence between two unitary circuits with the same number of qubits. Use
check_equivalence
function. - Check equivalence between a unitary circuit
$A$ with$n$ qubits and a unitary circuit$B$ with$n+k$ qubits. Use thecheck_equivalence_with_ancillas
function.
- First clone
git clone [email protected]:CalMacCQ/tensor-equiv.git
- Now install dependencies with uv.
cd tensor-equiv
uv sync
- Execute
main
script as a demo (requires GPU).
cd src/tensor_equiv
uv run python main.py