Reference OpenPulse AST in Python
Project description
OpenPulse Python Reference
OpenPulse is a concrete implementation of pulse grammar for cal
and defcal
body.
It reuses the classical types and statements from openqasm3.
The package is structured similarly to openqasm3
with the modules:
-
openpulse.ast
: The AST nodes. Identical nodes fromopenqasm3.ast
are re-exported. -
openpulse.parser
: A parser similar toopenqasm3.parser
, but for OpenPulse. -
tests
: A set of unit tests. -
No visitor module as
openqasm3.visitor
can be reused.
The OpenPulse grammar introduce the following:
- Pulse types:
port
,frame
andwaveform
. - Extension to OpenQASM 3 classical type to consume the pulse types.
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
openpulse-0.4.2.tar.gz
(364.8 kB
view details)
Built Distribution
openpulse-0.4.2-py3-none-any.whl
(377.0 kB
view details)
File details
Details for the file openpulse-0.4.2.tar.gz
.
File metadata
- Download URL: openpulse-0.4.2.tar.gz
- Upload date:
- Size: 364.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77b8724216abdbe47e086f64bea15c8c6369f62f954d90e9f4e88f065d2ab36e |
|
MD5 | 31d790408f51aafc5f39ace7995cf39a |
|
BLAKE2b-256 | 6a636db48eb9a3b43f8cb50bf7a362f98600706984c8ee0f976a8b67de7a5416 |
File details
Details for the file openpulse-0.4.2-py3-none-any.whl
.
File metadata
- Download URL: openpulse-0.4.2-py3-none-any.whl
- Upload date:
- Size: 377.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16634b102f3f1783292d24e5e13f6d430021edabba173993e08e9ca1e12009b1 |
|
MD5 | 0bbf8a3755ff65d8a7ee955ff5fbb665 |
|
BLAKE2b-256 | 10aec183853d895ce511647351eb52ea985590fc70071ce01c7def15767cbc49 |