Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update QPY serialization in qiskit-ibm-runtime for deserialization of UCRX, UCRY, and UCRZ gates #285

Closed
HuangJunye opened this issue Apr 14, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@HuangJunye
Copy link
Contributor

Describe the bug
QPY currently can't deserialize UCRX, UCRY, UCRZ gates which are used in the Grover circuit (Qiskit/qiskit#7847). As a temporary solution, the circuit is decomposed 4 levels down below these gates for making the tutorials. (#282). A fix in qiskit-terra is on the way and is planned to be released in qiskit-terrra 0.20.1. (Qiskit/qiskit#7933)

Steps to reproduce
See the details here: Qiskit/qiskit#7847

Expected behavior
Circuits containing UCRX, UCRY, and UCRZ gates can be serialized and deserialized for sending to the cloud without problems.

Suggested solutions
Following the steps suggested here

  1. Make any changes to qpy module in terra and terra releases the changes.
  2. Copy those qpy module changes to qiskit-ibm-runtime and release qiskit-ibm-runtime.
  3. ntc-provider picks up the latest qiskit-ibm-runtime once it's released. (ntc-provider is not yet using qiskit-ibm-runtime yet).

Additional Information

  • qiskit-ibm-runtime version: 0.4.0
  • Python version: 3.9
  • Operating system: macOS 12.2.1
@HuangJunye HuangJunye added the bug Something isn't working label Apr 14, 2022
@HuangJunye
Copy link
Contributor Author

This is not needed to fix the bug because of Qiskit/qiskit#7933 (comment)

However, in this case I don't think it is necessary because deserialization is done server side and the error would occur in the qiskit-runtime service's environment itself and the not the client when it tried to load the qpy file. When the runtime environment updates their qiskit version to 0.20.1 with this fix I would expect it to just start working because there is no change in the file format as part of this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant