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)
code/api/pennylane.math.sqrt_matrix
Download Python script
Download Notebook
View on GitHub