Skip to main content

A parser for the Quipper ASCII quantum circuit output format.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quippy-0.3.3.tar.gz (24.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

quippy-0.3.3-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

quippy-0.3.3-py2-none-any.whl (22.7 kB view details)

Uploaded Python 2

File details

Details for the file quippy-0.3.3.tar.gz.

File metadata

  • Download URL: quippy-0.3.3.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for quippy-0.3.3.tar.gz
Algorithm Hash digest
SHA256 9d67b331bdb9d312f8e9289db6267f5a05a0e4b02c6a44ce167d971b8ba1c11a
MD5 ebcc2897d6d4224e4ddcad505d8f9744
BLAKE2b-256 ccab9940702c7b1c3ac6b69dbb3723d652af8ad18b6e69d0da48e78c692802c5

See more details on using hashes here.

File details

Details for the file quippy-0.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for quippy-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71517cf107a36d9e1121cea93819e86794110c13e24b7d1b094c82cba1f28866
MD5 8d63b225c089c7281234cbbc5981f86a
BLAKE2b-256 8f3195a1c835435e2cda727caecf9146b9914bb6987d8dcdc31e3caf9ad267db

See more details on using hashes here.

File details

Details for the file quippy-0.3.3-py2-none-any.whl.

File metadata

File hashes

Hashes for quippy-0.3.3-py2-none-any.whl
Algorithm Hash digest
SHA256 69c95e43fceb1b1c61b0630b8ab7a8751bd2695d32db39d9f4312c94ab695c9a
MD5 4baca0d2a00bef04f3f26ddec54c9897
BLAKE2b-256 b45e1f2857a93867fba14cde34d759bea92c0ece5389dbeb4668b2156d737a07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page