Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Runtime encoder/decoder alters original circuit #550

Closed
kt474 opened this issue Mar 29, 2023 · 1 comment
Closed

Runtime encoder/decoder alters original circuit #550

kt474 opened this issue Mar 29, 2023 · 1 comment
Labels
Milestone

Comments

@kt474
Copy link
Member

kt474 commented Mar 29, 2023

Describe the bug
Sometimes encoding and decoding a circuit with RuntimeEncoder and RuntimeDecoder alters the original circuit

samples = some circuit
encoded = json.dumps(samples, cls=RuntimeEncoder)
decoded = json.loads(encoded, cls=RuntimeDecoder)

# decoded circuit is different from original 

Steps to reproduce

Expected behavior

Suggested solutions

Additional Information

  • qiskit-ibm-runtime version: 0.9.1
  • Python version: 3.10
  • Operating system: Mac OS
@kt474 kt474 added the bug label Mar 29, 2023
@kt474 kt474 self-assigned this Mar 29, 2023
@kt474 kt474 transferred this issue from Qiskit/qiskit-ibm-runtime Mar 29, 2023
@kt474 kt474 removed their assignment Mar 29, 2023
@kt474
Copy link
Member Author

kt474 commented Mar 29, 2023

fixed by #549

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant