qiskit.aqua.utils.random_h2_body¶ random_h2_body(N, M)[ソース]¶ Generate a random two body integrals. パラメータ N (int) – number of spin-orbitals (dimension of h2) M (int) – number of non-zero entries 戻り値 a numpy 4-D tensor with complex data type. 戻り値の型 np.ndarray 例外 ValueError – invalid spin orbitals