View source on GitHub
|
Data format v2 for google api.
Modules
device_pb2 module: Generated protocol buffer code.
metrics_pb2 module: Generated protocol buffer code.
ndarrays module: Utilities for converting to/from ndarray protos.
ndarrays_pb2 module: Generated protocol buffer code.
program module
program_pb2 module: Generated protocol buffer code.
result_pb2 module: Generated protocol buffer code.
results module
run_context_pb2 module: Generated protocol buffer code.
sweeps module
Classes
class MeasureInfo: Extra info about a single measurement within a circuit.
Functions
find_measurements(...): Find measurements in the given program (circuit).
grid_qubit_from_proto_id(...): Parse a proto id to a cirq.GridQubit.
line_qubit_from_proto_id(...): Parse a proto id to a cirq.LineQubit.
named_qubit_from_proto_id(...): Parse a proto id to a `cirq.NamedQubit'
pack_bits(...): Pack bits given as a numpy array of bools into bytes.
qubit_from_proto_id(...): Return a cirq.Qid for a proto id.
qubit_to_proto_id(...): Return a proto id for a cirq.Qid.
results_from_proto(...): Converts a v2 result proto into List of list of trial results.
results_to_proto(...): Converts trial results from multiple sweeps to v2 protobuf message.
run_context_to_proto(...): Populates a RunContext protobuf message.
sweep_from_proto(...): Creates a Sweep from a v2 protobuf message.
sweep_to_proto(...): Converts a Sweep to v2 protobuf message.
unpack_bits(...): Unpack bits from a byte array into numpy array of bools.
View source on GitHub