question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to use runtime programs with latest Qiskit version `0.34.2`

See original GitHub issue

Environment

  • 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Cryoriscommented, Mar 1, 2022

The runtime should work now again, at least for me the results are returned fine 👍🏻

1reaction
Cryoriscommented, Feb 15, 2022

@jyu00 will know more about this, but as far as I know the fix for this in underway 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes - Qiskit
Qiskit Metapackage Version qiskit‑terra qiskit‑aer qiskit‑ibmq‑provider Release Date 0.39.4 0.22.3 0.11.2 0.19.2 2022‑12‑08 0.39.3 0.22.3 0.11.1 0.19.2 2022‑11‑25 0.39.2 0.22.2 0.11.1 0.19.2 2022‑11‑03
Read more >
Release Notes — Qiskit 0.36.0 documentation
Qiskit Metapackage Version qiskit‑terra qiskit‑aer qiskit‑ignis qiskit‑ibmq‑provider Release... 0.36.0 0.20.0 0.10.4 0.7.0 0.19.0 2022‑04... 0.35.0 0.20.0 0.10.3 0.7.0 0.18.3 2022‑03... 0.34.2 0.19.2 0.10.3 0.7.0 0.18.3 2022‑02......
Read more >
Getting started - Qiskit
Installation¶. Let's get started using Qiskit! The first thing to do is choose how you're going to run and install the packages. There...
Read more >
Frequently Asked Questions - Qiskit
Q: Why do I receive the error message, No Module 'qiskit' when using Jupyter Notebook? A: If you used pip install qiskit and...
Read more >
Qiskit Runtime IBM Client 0.8.0 documentation
Qiskit Runtime is a new architecture that streamlines ... Qiskit Runtime has two predefined primitive programs: Sampler and Estimator .
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found