Deserializing a SingleQubitQPDGate
results in a generic Instruction
#444
Labels
cutting
QPD-based circuit cutting code
qpd
Related to quasi-probability decompositions
serialization
Related to serialization of our custom objects
With #417 solved by #442, it is now possible to serialize a
SingleQubitQPDGate
. However, when it is unserialized by qpy, the result is of typeInstruction
rather thanSingleQubitQPDGate
. It should be aSingleQubitQPDGate
after a serialization/deserialization round trip.Here's a minimum working example:
gives the following output
This, of course, has some implications: the resulting instructions don't actually behave like
SingleQubitQPDGate
s, even though they have the correctname
.We should find a way to fix this.
The text was updated successfully, but these errors were encountered: