qml.math.array

array(*args, like=None, **kwargs)[source]

Creates an array or tensor object of the target framework.

This method preserves the Torch device used.

Returns

the tensor_like object of the framework

Return type

tensor_like