0
$\begingroup$

I am trying to use the python tool PYZX to optimize my quantum circuit. In their documentation, they give this specific command to run on your circuit to optimize it.

python -m pyzx opt input_circuit.qasm

But when I run this with my file, I receive the following error:

File "C:\Users\darwe001\Anaconda3\envs\pozzigithub\lib\site-packages\pyzx\circuit\qasmparser.py", line 47, in parse raise TypeError("File does not start with OPENQASM descriptor") TypeError: File does not start with OPENQASM descriptor

Which is odd, because my file does start with OPENQASM 2.0; grover.qasm Does anyone know what I am doing wrong here or what I am forgetting? python

$\endgroup$

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.