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

Waveforms cannot be pickled #1753

Open
bramathon opened this issue Mar 15, 2024 · 0 comments
Open

Waveforms cannot be pickled #1753

bramathon opened this issue Mar 15, 2024 · 0 comments
Labels
bug 🐛 An issue that needs fixing.

Comments

@bramathon
Copy link
Contributor

from pyquil.quiltwaveforms import DragGaussianWaveform
import pickle

waveform = DragGaussianWaveform(duration=100e-9, fwhm=20e-9, t0=50e-9, anh=100e3, alpha=0.5, scale=1.0, phase=0.0, detuning=0.0)
pickle.dumps(waveform)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[30], line 5
      2 import pickle
      4 waveform = DragGaussianWaveform(duration=100e-9, fwhm=20e-9, t0=50e-9, anh=100e3, alpha=0.5, scale=1.0, phase=0.0, detuning=0.0)
----> 5 pickle.dumps(waveform)

TypeError: cannot pickle 'DragGaussianWaveform' object
@bramathon bramathon added the bug 🐛 An issue that needs fixing. label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue that needs fixing.
Projects
None yet
Development

No branches or pull requests

1 participant