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.5.0.tar.gz
(364.7 kB
view details)
Built Distribution
openpulse-0.5.0-py3-none-any.whl
(377.0 kB
view details)
File details
Details for the file openpulse-0.5.0.tar.gz
.
File metadata
- Download URL: openpulse-0.5.0.tar.gz
- Upload date:
- Size: 364.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7b1d940c0e081975f5ebdad2b378d24e4a612b73fce1bc2e26948d907f5db1c |
|
MD5 | 797ea125452b079fe638ea97b7e0e402 |
|
BLAKE2b-256 | 1f031cf03d929740c5c83f5791f6cc13d499c5a1f4d3bddc2b448661d12d5fe4 |
File details
Details for the file openpulse-0.5.0-py3-none-any.whl
.
File metadata
- Download URL: openpulse-0.5.0-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.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91b69633366381f3fdbc0c9be8c37c114b2d8e469f667ff9b0f78632e00c395 |
|
MD5 | e2ca3734a7cab0c4dd55f31602b83fb1 |
|
BLAKE2b-256 | a753f4a5136a928ecac7a463dd94f34ebf04b4a2d8ddf7e87bd8086068de72d8 |