Read a gzipped JSON file that optionally contains cirq objects.
file_or_fn: Union[None, IO, pathlib.Path, str] = None,
gzip_raw: Optional[bytes] = None,
resolvers: Optional[Sequence[JsonResolver]] = None
A filename (if a string or
pathlib.Path) to read from, or
an IO object (such as a file or buffer) to read from, or
gzip_raw argument should be used. Defaults to
Bytes representing the raw gzip input to unzip and parse
file_or_fn should be used. Defaults to
A list of functions that are called in order to turn
cirq_type string into a constructable class.
By default, top-level cirq objects that implement the SupportsJSON
protocol are supported. You can extend the list of supported types
by pre-pending custom resolvers. Each resolver should return
to indicate that it cannot resolve the given cirq_type and that
the next resolver should be tried.
If either none of
gzip_raw is specified,
or both are specified.