pyGSTi icon indicating copy to clipboard operation
pyGSTi copied to clipboard

Serialization Issue w/ Processor Spec Nonstd_Instruments

Open pcwysoc opened this issue 7 months ago • 1 comments

Describe the bug An issue with the serialization of 'nonstd_instruments' in processerspec.py that causes ProtocolData with experiment designs generated from a processor spec to not write.

To Reproduce Steps to reproduce the behavior:

  1. Create a processor spec
  2. Create a target model from the processor spec
  3. Add the quantum instrument to the target model target_model[('Iz', 0)] = pygsti.modelmembers.instruments.Instrument({'p0': Q0 'p1': Q1})
  4. Generate an experiment design from the target model
  5. Generate data
  6. Create a ProtocolData & attempt to save:
Screenshot 2024-07-16 at 3 48 13 PM

Expected behavior The serialization should work correctly, allowing me to save ProtocolData with experiment designs generated from a processor spec to not write.

Environment (please complete the following information):

  • pyGSTi version feature-qiskit-mcm
  • python version 3.10

pcwysoc avatar Jul 16 '24 19:07 pcwysoc