Skip to content

Commit

Permalink
fix random t2 generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Dec 7, 2023
1 parent f7ac4ed commit c5c404a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/ffsim/random/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def random_t2_amplitudes(
t2 = np.zeros((nocc, nocc, nvrt, nvrt), dtype=dtype)
pairs = itertools.product(range(nocc), range(nocc, norb))
for (m, (i, a)), (n, (j, b)) in itertools.product(enumerate(pairs), repeat=2):
if m <= n and i <= j and a <= b:
if m <= n:
val = rng.standard_normal()
t2[i, j, a - nocc, b - nocc] = val
t2[j, i, b - nocc, a - nocc] = val
Expand Down

0 comments on commit c5c404a

Please sign in to comment.