Skip to content

Commit

Permalink
Switched from NumPy to SciPy for determinant calc
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshioka1128 committed Sep 25, 2024
1 parent 2ad8d6b commit db9001b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openqaoa-core/openqaoa/algorithms/fqaoa/fqaoa_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_statevector(orbitals: np.ndarray) -> np.ndarray:
for i, j in enumerate(indices):
cof[:, i] = orbitals[:, j]
# Calculate the determinant and store it in the statevector
statevector[inum] = np.linalg.det(cof)
statevector[inum] = linalg.det(cof)

return statevector

Expand Down

0 comments on commit db9001b

Please sign in to comment.