qml.math.sqrt_matrix

sqrt_matrix(density_matrix)[source]

Compute the square root matrix of a density matrix where \(\rho = \sqrt{\rho} \times \sqrt{\rho}\)

Parameters

density_matrix (tensor_like) – 2D or 3D (with batching) density matrix of the quantum system.

Returns

Square root of the density matrix.

Return type

(tensor_like)

Contents

Using PennyLane

Release news

Development

API

Internals