MPSEnvBounds#
-
class cuquantum.
bindings. cutensornet. MPSEnvBounds(size=1)[source]# Empty-initialize an array of
cutensornetMPSEnvBounds_t
.The resulting object is of length
size
and of dtypemps_env_bounds_dtype
. If default-constructed, the instance represents a single struct.- Parameters:
size (int) – number of structs, default=1.
See also
Methods
- __init__(*args, **kwargs)#
- static from_data(data)[source]#
Create an MPSEnvBounds instance wrapping the given NumPy array.
- Parameters:
data (_numpy.ndarray) – a 1D array of dtype
mps_env_bounds_dtype
holding the data.
- static from_ptr(
- intptr_t ptr,
- size_t size=1,
- bool readonly=False,
Create an MPSEnvBounds instance wrapping the given pointer.
Attributes