-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Inverting gates does not allow to save circuit in json #6538
Comments
I'm surprised this is the case! @pavoljuhas Can you please take a look? |
@tanujkhattar - this can be reduced to the serialization of an inverted cirq.PhasedFSimGate, which ends up as follows - >>> print(cirq.to_json(cirq.inverse(cirq.PhasedFSimGate(0))).replace("\\n", "\n"))
{
"cirq_type": "_InverseCompositeGate"
}
After a quick search through the git history I could not find any tests of I wonder why was the serialization omitted for cc: @Strilanc |
There may not be any specific reason; I think we should go ahead and add |
Description of the issue
How to reproduce the issue
---> the following code will fail with:
Cirq version
The text was updated successfully, but these errors were encountered: