English
Languages
English
Japanese
German
Korean
Portuguese, Brazilian
French
Shortcuts

qiskit.aqua.utils.random_h1_body

random_h1_body(N)[source]

Generate a random one body integrals.

Parameters

N (int) – the number of spin orbitals.

Returns

a 2-D matrix with complex data type.

Return type

np.ndarray

Raises

ValueError – invalid number of spin orbitals