Skip to main content

2QAN is an open source compiler for two-local qubit Hamiltonian simulation algorithms.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py2QAN-0.0.3.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

py2QAN-0.0.3-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file py2QAN-0.0.3.tar.gz.

File metadata

  • Download URL: py2QAN-0.0.3.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for py2QAN-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a88c422aa3e3f0f158a19fab0d952f5e412d70ff04aec86ef3450f70a1fdfd25
MD5 b9c62bf811fab6711fbd23339093f2a3
BLAKE2b-256 76c5cf9e7b40644227bec162ff8a896c2fe7d77246970c2a6d51b9458f46e011

See more details on using hashes here.

File details

Details for the file py2QAN-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: py2QAN-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.5

File hashes

Hashes for py2QAN-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ae87d2f0359706a732043733fc9c82a28cf40515a6bb2078a295b7ecfd72c7d8
MD5 9ceb2ceecf6df3f75ad11e279a96636b
BLAKE2b-256 86e164aac617aa0e8f813d4d75a04a9a47a7eedf5e5e59df03783dfcb8fb6d38

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page