Skip to content

Commit

Permalink
fix random uccsd complex t1 generation
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinsung committed Oct 13, 2024
1 parent 3b850d3 commit c5a1a2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/ffsim/random/random.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,9 @@ def random_uccsd_restricted(
"""
rng = np.random.default_rng(seed)
nvrt = norb - nocc
t1 = rng.standard_normal((nocc, nvrt))
t1 = rng.standard_normal((nocc, nvrt), dtype=float if real else complex)
if not real:
t1 += 1j * rng.standard_normal((nocc, nvrt))
t2 = random_t2_amplitudes(norb, nocc, seed=rng, dtype=float if real else complex)
final_orbital_rotation = None
if with_final_orbital_rotation:
Expand Down

0 comments on commit c5a1a2d

Please sign in to comment.