Impossible to use runtime programs with latest Qiskit version `0.34.2`
See original GitHub issueEnvironment
-
Qiskit Terra version: qiskit 0.34.2 qiskit-aer 0.10.3 qiskit-aqua 0.7.0 qiskit-ibmq-provider 0.18.3 qiskit-ignis 0.7.0 qiskit-terra 0.19.2
-
Python version: Python 3.8
-
Operating system: Mac OS (intel chip)
What is happening?
Since last release of Qiskit, I am unable to run Qiskit runtime program. Apparently there is a problem with the qpy_serialization
function, which creates invalid OPENQASM register name such as \x01.
Here you can find a part of the error message.
/usr/local/lib/python3.8/site-packages/qiskit/circuit/qpy_serialization.py:1563: UserWarning: The qiskit version used to generate the provided QPY file, 0.19.2, is newer than the current qiskit version 0.19.1. This may result in an error if the QPY file uses instructions not present in this current qiskit version\n …
File “/usr/local/lib/python3.8/site-packages/qiskit/circuit/register.py”, line 103, in init\n2022-02-14T15:51:46.917015284Z raise CircuitError(\n2022-02-14T15:51:46.917032015Z qiskit.circuit.exceptions.CircuitError: '\x01 is an invalid OPENQASM register name. See appendix A of https://arxiv.org/pdf/1707.03429v2.pdf.\‘\n’
Process finished with exit code 1
How can we reproduce the issue?
from qiskit import QuantumCircuit
qc = QuantumCircuit(2, 2)
qc.h(0)
qc.cx(0, 1)
qc.measure([0, 1], [0, 1])
IBMQ.enable_account(my_token)
provider = IBMQ.get_provider(hub="ibm-q", group="open", project="main")
program_inputs = {'circuits': qc,
'optimization_level': 3
}
options = {'backend_name': "ibmq_qasm_simulator"}
job = provider.runtime.run(program_id="circuit-runner",
options=options,
inputs=program_inputs,
)
What should happen?
It should run the circuit runner program without problem.
Any suggestions?
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top GitHub Comments
The runtime should work now again, at least for me the results are returned fine 👍🏻
@jyu00 will know more about this, but as far as I know the fix for this in underway 🙂