2QAN is a quantum compiler for 2-local qubit Hamiltonian simulation algorithms. 2QAN uses algorithm-specific routing and scheduling techniques and can target different device topologies, different gate sets (e.g., CNOT/CX, SYC, iSWAP, sqrt_iSWAP, etc.).
A mapping algorithm based on quadratic assignment problem (QAP) is implemented in 2QAN for small benchmarks. The QAP mapper could find good qubit initial placements for small circuits, but becomes very slow for large circuits. For fast compilation, especially for circuits with more than 40 qubits, we encourage users to use other different qubit mapping techniques such as the ones in Qiskit and tket.
- 2QAN is using Qiskit (0.36.0) circuit representation
- Other required python packages can be found in requirement.txt
Py2QAN can be downloaded and installed from PyPI with the command:
pip install py2qan
Note that Py2QAN requires Python 3.
Check out the examples here
When using 2QAN for research, please cite:
@article{lao20212QAN,
title={{2QAN}: A quantum compiler for 2-local qubit Hamiltonian simulation algorithms},
author={Lao, Lingling},
journal={arXiv preprint arXiv:2108.02099},
year={2021}
}