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.2.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

py2QAN-0.0.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: py2QAN-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 80e242d458e5852bfeab272b9f869ce9f0735a8e4d539f68265f37589d1b21e5
MD5 9185aba4d93d95e3ce4eeb88b91c7dbc
BLAKE2b-256 ec71378a7c4c43709127cc7b9b99e374e7f26b363b07a976d1cda53fb11a7a15

See more details on using hashes here.

File details

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

File metadata

  • Download URL: py2QAN-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c045b9beb82956364b1ffb00ed6af381af0adf48cc13845029439edf5c0e641a
MD5 31eb7494037fcf3f7e62e1c26a7737d5
BLAKE2b-256 3430d77a16a4572b8e3940e266e5f26f426df5838ec641724f13385c4ccf3ce5

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