Skip to main content

OpenQasmInterpreter (oqi)

This package interprets a .qasm 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 as well as many other things needed in order to run the interpreter came from the qiskit repo. My apportation was to create the pip package and some wrapping in order to run the interpreter.

v1.0.0

* oqi now has the functionality to draw and run circuits especified in a .qasm file

v1.0.1

* Removed unused imports

v1.0.2

* Added config to run from command line

Download files

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

Source Distribution

oqi-1.0.0.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

oqi-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file oqi-1.0.0.tar.gz.

File metadata

  • Download URL: oqi-1.0.0.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.5

File hashes

Hashes for oqi-1.0.0.tar.gz
Algorithm Hash digest
SHA256 68d98a1d7a5d7f92baead286d59f1f56466220136be56ae9b1ac7818ce48d56f
MD5 ebd24680c92a0187567bb1a8069efd05
BLAKE2b-256 7ce27c0562bc3157e38a93e7311cef8c205a542f7a3b29c98cfbdc43cadef253

See more details on using hashes here.

File details

Details for the file oqi-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: oqi-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.5

File hashes

Hashes for oqi-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e20835c339fe59ec2f1bc916dd8f6fe29733016450288bec82510a7a65939c94
MD5 364835971e90b245d8575d1d2f26755b
BLAKE2b-256 f54c2e72d3def89834b974db714164287d10268a15758bc6fa1355fc3f20d939

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.5

1 file

1.0.4

1 file

1.0.3

2 files

1.0.2

2 files

This release

1.0.0 This release

2 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