We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
From DisCoPy v0.6 run the following:
import pickle from discopy import Ket, Measure circuit = Ket(0) >> Measure(1) f = open("circuit.pkl", "wb") pickle.dump(circuit, f) f.close()
From DisCoPy >1.0 we get a broken name for layers:
>>> import pickle >>> f = open("circuit.pkl", "rb") >>> print(pickle.load(f)) Layer >> Layer
This is because Layer.name is now calculated during the __init__.
Layer.name
__init__
The text was updated successfully, but these errors were encountered:
No branches or pull requests
From DisCoPy v0.6 run the following:
From DisCoPy >1.0 we get a broken name for layers:
This is because
Layer.name
is now calculated during the__init__
.The text was updated successfully, but these errors were encountered: