qml.math.sqrt_matrix
-
sqrt_matrix(density_matrix)[source]
Compute the square root matrix of a density matrix where ρ=√ρ×√ρ
- 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)
code/api/pennylane.math.sqrt_matrix