Skip to main content

Python toolkit providing an OpenQASM 3 semantic analyzer and utilities for program analysis and compilation.

Project description

pyqasm

CI codecov Documentation Status PyPI version Python verions License

Python toolkit providing an OpenQASM 3 semantic analyzer and utilities for program analysis and compilation.

[!WARNING] This project is "pre-alpha", and is not yet stable or fully realized. Use with caution, as the API and functionality are subject to significant changes.

Motivation

OpenQASM is a powerful language for expressing hybrid quantum-classical programs, but it lacks a comprehensive tool supporting the full capabilities of the language. PyQASM aims to fill this gap by building upon the openqasm3.parser, and providing support for semantic analysis and utilities for program compilation.

Installation

PyQASM requires Python 3.10 or greater, and can be installed with pip as follows:

pip install pyqasm

Install from source

You can also install from source by cloning this repository and running a pip install command in the root directory of the repository:

git clone https://github.com/qBraid/pyqasm.git
cd pyqasm
pip install .

Check version

You can view the version of pyqasm you have installed within a Python shell as follows:

>>> import pyqasm
>>> pyqasm.__version__

Resources

Contributing

GitHub QCSE Discord

License

GNU General Public License v3.0

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

pyqasm-0.0.3.tar.gz (271.9 kB view details)

Uploaded Source

Built Distribution

pyqasm-0.0.3-py3-none-any.whl (65.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyqasm-0.0.3.tar.gz
  • Upload date:
  • Size: 271.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyqasm-0.0.3.tar.gz
Algorithm Hash digest
SHA256 04d1f8145b93905837a3568dde907b7e3c72f9817a22961e50d6af18673330ad
MD5 36eda14267c415afdf5593631ce20bed
BLAKE2b-256 fb1049af063ac88c4a51f5a1fef2c9c60a68d9a05acdcaa28e30ec755ef37871

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqasm-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 65.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pyqasm-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d5a0dc786b994da28c4e4515375f21c7ef1f98de70ef5f5b7351eeccb40298f6
MD5 107aedddbcf8c93ef8ef68c9753b54ef
BLAKE2b-256 c1eca6578b0b905126569c1a850c2da304d4b9d1466ed2c8950e32c6aca5bd68

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