View source on GitHub |
An object which prepends a namespace to its JSON cirq_type.
cirq.HasJSONNamespace(
*args, **kwargs
)
Classes which implement this method have the following cirq_type format:
f"{obj._json_namespace_()}.{obj.__class__.__name__}
Classes outside of Cirq or its submodules MUST implement this method to be used in type serialization.