From c5c404a6e93c83bfeaaa0b4c9f5a96d8f779e77b Mon Sep 17 00:00:00 2001 From: "Kevin J. Sung" Date: Thu, 7 Dec 2023 15:06:46 -0500 Subject: [PATCH] fix random t2 generation --- python/ffsim/random/random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ffsim/random/random.py b/python/ffsim/random/random.py index 646347833..34a6fbb83 100644 --- a/python/ffsim/random/random.py +++ b/python/ffsim/random/random.py @@ -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