Loading [MathJax]/jax/output/HTML-CSS/jax.js

qml.math.svd

svd(tensor, like=None, **kwargs)[source]

Compute the singular value decomposition of a tensor in each interface.

The singular value decomposition for a matrix A consist of three matrices S, U and Vh, such that:

A=UDiag(S)Vh
Parameters
  • tensor (tensor_like) – input tensor

  • compute_uv (bool) – if True, the full decomposition is returned

Returns

full decomposition if compute_uv is True or None, or only the singular values if compute_uv is False

Return type

S, U and Vh or S

Contents

Using PennyLane

Release news

Development

API

Internals