Skip to content
forked from lllingoo/2QAN

A quantum compiler for 2-local qubit Hamiltonian simulation algorithms

License

Notifications You must be signed in to change notification settings

unitaryfund/ucc-2qan

 
 

Repository files navigation

2QAN

PyPI version arXiv Unitary Fund

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.

Requirements

  1. 2QAN is using Qiskit (0.36.0) circuit representation
  2. Other required python packages can be found in requirement.txt

Installation

Py2QAN can be downloaded and installed from PyPI with the command:

pip install py2qan

Note that Py2QAN requires Python 3.

Example

Check out the examples here

Attribution

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}
}

About

A quantum compiler for 2-local qubit Hamiltonian simulation algorithms

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 87.6%
  • Python 12.4%