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.1.tar.gz
(361.2 kB
view details)
Built Distribution
openpulse-0.4.1-py3-none-any.whl
(376.3 kB
view details)
File details
Details for the file openpulse-0.4.1.tar.gz
.
File metadata
- Download URL: openpulse-0.4.1.tar.gz
- Upload date:
- Size: 361.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a73c76ab73bd5f2a8e35a4db8a4dff33481e788d610fdbff8c4d9b425bdb0534 |
|
MD5 | 00f9d6fb4fbb07ac7125c03134452f97 |
|
BLAKE2b-256 | 99a17bcfdc9a69fb2309a796005ec343f361e4e4ae231d82a23f53cd515f4f71 |
File details
Details for the file openpulse-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: openpulse-0.4.1-py3-none-any.whl
- Upload date:
- Size: 376.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6718c148a58a9139887349f54b56594e6be964c6ebeffddbcbdb878d6559b09 |
|
MD5 | 8c97e06040dc57988edf1cece3f391c1 |
|
BLAKE2b-256 | 6fcf85d0b859de9a2c0e9c6bed4b936a1eb9342bb39aca9d30e3200a4353b4ed |