Module: cirq_google.api.v2.ndarrays

Utilities for converting to/from ndarray protos.

Modules

ndarrays_pb2 module: Generated protocol buffer code.

Classes

class TUIntMsg: A ProtocolMessage

Functions

from_bitarray(...): Convert a BitArray proto to a numpy array of the same shape.

from_complex128_array(...): Convert a Complex128Array proto to a numpy array of the same shape.

from_complex64_array(...): Convert a Complex64Array proto to a numpy array of the same shape.

from_float16_array(...): Convert a Float16Array proto to a numpy array of the same shape.

from_float32_array(...): Convert a Float32Array proto to a numpy array of the same shape.

from_float64_array(...): Convert a Float64Array proto to a numpy array of the same shape.

from_int16_array(...): Convert a Int16Array proto to a numpy array of the same shape.

from_int32_array(...): Convert a Int32Array proto to a numpy array of the same shape.

from_int64_array(...): Convert a Int64Array proto to a numpy array of the same shape.

from_int8_array(...): Convert a Int8Array proto to a numpy array of the same shape.

from_uint8_array(...): Convert a UInt8Array proto to a numpy array of the same shape.

to_bitarray(...): Populate a new or provided BitArray message with the given numpy array.

to_complex128_array(...): Populate a new or provided Complex128Array msg with given numpy array.

to_complex64_array(...): Populate a new or provided Complex64Array msg with given numpy array.

to_float16_array(...): Populate a new or provided Float16Array message with given numpy array.

to_float32_array(...): Populate a new or provided Float32Array message with given numpy array.

to_float64_array(...): Populate a new or provided Float64Array message with given numpy array.

to_int16_array(...): Populate a new or provided Int16Array message with given numpy array.

to_int32_array(...): Populate a new or provided Int32Array message with given numpy array.

to_int64_array(...): Populate a new or provided Int64Array message with given numpy array.

to_int8_array(...): Populate a new or provided Int8Array message with given numpy array.

to_uint8_array(...): Populate a new or provided UInt8Array message with given numpy array.

NATIVE_BO 0
TComplexMsg Instance of typing.TypeVar
TFloatMsg Instance of typing.TypeVar
TIntMsg Instance of typing.TypeVar
annotations Instance of __future__._Feature