Skip to content

DAGCircuit does not properly pickle stretches #13999

@kevinhartman

Description

@kevinhartman

Environment

  • Qiskit version: 2.0.0rc
  • Python version: Any
  • Operating system: Any

What is happening?

The implementations of DAGCircuit::__getstate__ and DAGCircuit::__setstate__ are missing logic to for stretch identifiers.

How can we reproduce the issue?

Pickling and unpickling a DAGCircuit with stretches should result in the stretches getting dropped.

What should happen?

The stretches should be preserved after unpickling.

Any suggestions?

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions