8000 GitHub - qBraid/pyqasm at refs/heads/main
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

qBraid/pyqasm

 
 

Repository files navigation

pyqasm

CI codecov GitHub Pages PyPI version PyPI Downloads Python verions License

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

Env Badge

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

Optional Dependencies

PyQASM provides an optional extra called pyqasm[pulse] that adds pulse/calibration features.

pip install pyqasm[pulse]

PyQASM also offers optional extras for command-line interface (CLI) functionality and for program visualization.

To install the CLI tools:

pip install pyqasm[cli]

To install the visualization tools:

pip install pyqasm[visualization]

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

Apache-2.0 License

About

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

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 12

Languages

0