cirq_google.api.v2.sweep_to_proto

Converts a Sweep to v2 protobuf message.

sweep The sweep to convert.
out Optional message to be populated. If not given, a new message will be created.
sweep_transformer A function called on Linspace, Points.
use_float64 If true, float64 is used to encode the floating value. If false, float32 is used instead. Default: False.

Populated sweep protobuf message.

ValueError If the conversion cannot be completed successfully.