qiskit.aqua.utils.random_h2_body¶
-
random_h2_body
(N, M)[Quellcode]¶ Generate a random two body integrals.
- Parameter
N (int) – number of spin-orbitals (dimension of h2)
M (int) – number of non-zero entries
- Rückgabe
a numpy 4-D tensor with complex data type.
- Rückgabetyp
np.ndarray
- Verursacht
ValueError – invalid spin orbitals