Open Qasm interpreter.
Project description
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
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
oqi-1.0.2.tar.gz
(2.4 kB
view hashes)
Built Distribution
oqi-1.0.2-py3-none-any.whl
(3.3 kB
view hashes)