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.2.0.tar.gz
(32.2 kB
view hashes)
Built Distribution
openpulse-0.2.0-py3-none-any.whl
(32.3 kB
view hashes)
Close
Hashes for openpulse-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e73f57e433493f46fef5aca3b09bbe1aa2d9237c4aa6b98f64f2d5b51bc3c532 |
|
MD5 | 272f19bd02f4383501f60c484bf8eb53 |
|
BLAKE2b-256 | 27abc00ea0750838b32ec5d5c195d018ccaa7e7be162c1b195476f2c3f9dfd6b |