You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.../envs/dev-terra/python.exe .../qiskit-terra/_sandbox/qv.py
Traceback (most recent call last):
File ".../qiskit-terra/_sandbox/qv.py", line 12, in <module>
loaded_qc = QuantumCircuit.from_qasm_file("qv.qasm")
File ".../qiskit-terra/qiskit/circuit/quantumcircuit.py", line 2056, in from_qasm_file
Error near line 3 Column 15
return _circuit_from_qasm(qasm)
File ".../qiskit-terra/qiskit/circuit/quantumcircuit.py", line 3003, in _circuit_from_qasm
ast = qasm.parse()
File ".../qiskit-terra/qiskit/qasm/qasm.py", line 53, in parse
return qasm_p.parse(self._data)
File ".../qiskit-terra/qiskit/qasm/qasmparser.py", line 1141, in parse
self.parser.parse(data, lexer=self.lexer, debug=self.parse_deb)
File ".../envs/dev-terra/lib/site-packages/ply/yacc.py", line 333, in parse
return self.parseopt_notrack(input, lexer, debug, tracking, tokenfunc)
File ".../envs/dev-terra/lib/site-packages/ply/yacc.py", line 1120, in parseopt_notrack
p.callable(pslice)
File ".../qiskit-terra/qiskit/qasm/qasmparser.py", line 400, in p_id_e
raise QasmError("Expected an ID, received '" + str(program[1].value) + "'")
qiskit.qasm.exceptions.QasmError: "Expected an ID, received '['"
What is the expected behavior?
No exceptions to be raisen.
The text was updated successfully, but these errors were encountered:
Information
What is the current behavior?
There's an exception when an instance of
QuantumVolume
circuit is saved as a qasm file and then loaded from this file.Steps to reproduce the problem
Run the script:
There's an exception:
What is the expected behavior?
No exceptions to be raisen.
The text was updated successfully, but these errors were encountered: