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=U⋅Diag(S)⋅Vh- Parameters
tensor (tensor_like) – input tensor
compute_uv (bool) – if
True
, the full decomposition is returned
- Returns
full decomposition if
compute_uv
isTrue
orNone
, or only the singular values ifcompute_uv
isFalse
- Return type
S, U and Vh or S