qics.quantum.random.pure_density_matrix¶
- qics.quantum.random.pure_density_matrix(n, iscomplex=False)[source]¶
Generate a random pure density matrix i.e., rank 1 positive semidefinite matrix \(X\in\mathbb{H}^n\) satisfying \(\text{tr}[X] = 1\).
- Parameters:
- Returns:
ndarray
Random pure density matrix of dimension
(n, n)
.
Notes
See [1] for additional details.
[1]Khatri, S. (2020) “Random Pure States”. https://sumeetkhatri.com/wp-content/uploads/2020/05/random_pure_states.pdf