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, ...}

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.2.tar.gz (2.4 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.2-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: oqi-1.0.2.tar.gz
  • Upload date:
  • Size: 2.4 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.2.tar.gz
Algorithm Hash digest
SHA256 b29f5862b58109a1eb3dda4951a51995bd7458d11e56f1bf61275f582e120d7d
MD5 f60105b9d377960e06de0d42cd9c3a55
BLAKE2b-256 9a3139fad0e5f4c2a10a1fc62d7ffda7ddeb086848d7679229be9684deff7212

See more details on using hashes here.

File details

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

File metadata

  • Download URL: oqi-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7ec6fb1b19acbdfe74d480876fd83c295a7d1d974545d118f97f637e88ba5f06
MD5 5e4666ba018b6d2dc19ea0ba654a6431
BLAKE2b-256 32c5c3af102f48e41113c7069d643da1309941618ba661469db7e5a23f802489

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

This release

1.0.2 This release

2 files

1.0.0

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