Quippy is a parser for quantum circuit descriptions produces by Quipper. Specifically, Quipper can output an ASCII description of the circuit, which can then be parsed by Quippy.
Quippy provides a default parser in quippy.parser that will parse given text as:
import quippy parsed:quippy.Start = quippy.parser().parse(text)
The parsed format uses an quippy.Start object to represent the Quipper circuit by default. This is a nice Object representation of the circuit the Abstract Syntax Tree is directly transformed to by quippy.transformer.QuipperTransformer. The resulting parsed object will have as type a Start object which will make the structure of the parse tree much clearer. If you do no wish to use the included transformer but would rather have a general AST then pass:
quippy.parser(transformer=None)
We use the optional static typing provided in PEP 484 to provide types for the returned objects, this was included in Python 3.5 or higher. Python 3.6 or higher is recommended.
Metadata
Release files for quippy 0.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quippy-0.3.3.tar.gz | 24.8 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quippy-0.3.3-py3-none-any.whl | Python 3 | none | any | Details |
| quippy-0.3.3-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 70.2 kB
Release files / quippy-0.3.3.tar.gz
| Download URL | quippy-0.3.3.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d67b331bdb9d312f8e9289db6267f5a05a0e4b02c6a44ce167d971b8ba1c11a
|
|
BLAKE2b-256 checksum How to use checksums |
ccab9940702c7b1c3ac6b69dbb3723d652af8ad18b6e69d0da48e78c692802c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / quippy-0.3.3-py3-none-any.whl
| Download URL | quippy-0.3.3-py3-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
71517cf107a36d9e1121cea93819e86794110c13e24b7d1b094c82cba1f28866
|
|
BLAKE2b-256 checksum How to use checksums |
8f3195a1c835435e2cda727caecf9146b9914bb6987d8dcdc31e3caf9ad267db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / quippy-0.3.3-py2-none-any.whl
| Download URL | quippy-0.3.3-py2-none-any.whl |
|---|---|
| Size | 22.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
69c95e43fceb1b1c61b0630b8ab7a8751bd2695d32db39d9f4312c94ab695c9a
|
|
BLAKE2b-256 checksum How to use checksums |
b45e1f2857a93867fba14cde34d759bea92c0ece5389dbeb4668b2156d737a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |