Python toolkit providing an OpenQASM 3 semantic analyzer and utilities for program analysis and compilation.
Project description
pyqasm
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
- API Reference: Developer documentation.
- Usage Examples: Scripts and Markdown examples demonstrating core functionality.
- Supported Operations: OpenQASM language features supported, in progress, and planned for future support.
Contributing
- Interested in contributing code, or making a PR? See CONTRIBUTING.md
- For feature requests and bug reports: Submit an issue
- For discussions, and specific questions about pyqasm, or other topics, join our discord community
- For questions that are more suited for a forum, post to
QCSE
with the
pyqasm
tag. - By participating, you are expected to uphold our code of conduct.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04d1f8145b93905837a3568dde907b7e3c72f9817a22961e50d6af18673330ad |
|
MD5 | 36eda14267c415afdf5593631ce20bed |
|
BLAKE2b-256 | fb1049af063ac88c4a51f5a1fef2c9c60a68d9a05acdcaa28e30ec755ef37871 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5a0dc786b994da28c4e4515375f21c7ef1f98de70ef5f5b7351eeccb40298f6 |
|
MD5 | 107aedddbcf8c93ef8ef68c9753b54ef |
|
BLAKE2b-256 | c1eca6578b0b905126569c1a850c2da304d4b9d1466ed2c8950e32c6aca5bd68 |