Reference OpenPulse AST in Python
Project description
OpenPulse Python Reference
OpenPulse is a minor extension to OpenQASM 3 with a concrete implementation of pulse grammar.
The openpulse
package depends on the openqasm3 package, re-export the
identical openqasm3.ast
nodes, and reuse many methods in openpulse.parser
.
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 extensions to the OpenQASM 3 grammar are:
- Pulse types:
port
,frame
andwaveform
. - Extension to OpenQASM 3 classical type to consume the pulse types.
- Definition of
cal
block and redefinition of OpenQASM 3defcal
block with OpenPulse grammar.
Development Environment
You will need to first follow the README in the openqasm directory and install openqasm3
to your
virtual environment in editable mode.
Developer tools
This package uses the same developer tools as openqasm3
.
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
Built Distribution
File details
Details for the file openpulse-0.0.1.tar.gz
.
File metadata
- Download URL: openpulse-0.0.1.tar.gz
- Upload date:
- Size: 31.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76b7c526ba464d0e7aecb618d490c57bf25248413f63df0d759e4efbe19391c0 |
|
MD5 | 6143edb36c731eed76f049f227d0bc4c |
|
BLAKE2b-256 | 8197480a913a5d6ff477948b57d9ee425099b1f786142f615ddedbb461f820b1 |
File details
Details for the file openpulse-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: openpulse-0.0.1-py3-none-any.whl
- Upload date:
- Size: 32.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d89d4e9326d54189c5c743c5e3580bdc28aefb05742c5f3e25414e284a3daedd |
|
MD5 | db4571b190eca052faf2e9a0b740d106 |
|
BLAKE2b-256 | aff68264177d3adef713b64f34408edb470ba5e1acaa37b7db995383dd698be8 |