Skip to main content

OpenQasmInterpreter (oqi)

This package interprets a .qasm 2.0 file and then outputs the results to the console. All of the executions are made using the qasm simulator. Moreover you can specify different options to run your circuit.

To just run your .qasm file you'll have to run:

oqi filename

Additionally if you want to see and run your circuit you can execute:

oqi filename d

Finally if you want to run your circuit n number of times you can specify the repetitions:

oqi filename d n

or

oqi filename n

In any case the output will include something of the form:

The results are: {'bits': numberOfMeasurements, ...}

Installation

Install it with the pip package manager:

pip install oqi

Features

Custom errors:

image

Draw and run your circuits:

image

Acknowledgements

The token analyser and many other things needed in order to run the interpreter came from the qiskit repo. My contribution was to create the pip package and some wrapping in order to run their interpreter.

Metadata

Release files for oqi 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oqi 1.0.5
File Size Uploaded
oqi-1.0.5.tar.gz 2.5 kB Details

Release files / oqi-1.0.5.tar.gz

Download URL oqi-1.0.5.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fd087b7f87a57b68e159f5e6cb51d13c45ee02df3876d416089e5a80ff915a28
BLAKE2b-256 checksum
How to use checksums
b7d6d2d141aa040d93443b1c9d4e7caa7e0e5cc574b1e470bb56cf9551ce736e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

1.0.5 This release

1 release file

1.0.4

1 release file

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page