Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.aqua.utils.random_h1_body

random_h1_body(N)

GitHub

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

Was this page helpful?
Report a bug or request content on GitHub.