qml.math.array

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

Creates an array or tensor object of the target framework.

If the PyTorch interface is specified, this method preserves the Torch device used. If the JAX interface is specified, this method uses JAX numpy arrays, which do not cause issues with jit tracers.

Returns

the tensor_like object of the framework

Return type

tensor_like

Contents

Using PennyLane

Release news

Development

API

Internals