qml.math.eye

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

Creates an identity 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

Contents

Using PennyLane

Development

API

Internals