View source on GitHub |
Appends exactly col orthonormal random vectors for vectors.
openfermion.linalg.append_random_vectors(
vectors, col, max_trial=3, real_only=False
)
Assumes vectors is already orthonormal.
Args | |
---|---|
vectors
|
numpy.ndarray(complex
Orthonormal original vectors to be appended. |
col
|
int
Number of columns to be appended. |
real_only
|
bool
Real vectors or complex ones. |
Returns | |
---|---|
vectors
|
numpy.ndarray(complex
Orthonormal vectors with n columns. |