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}\) :param density_matrix: 2D density matrix of the quantum system. :type density_matrix: tensor_like

Returns

Square root of the density matrix.

Return type

(tensor_like)