Skip to content

Commit

Permalink
Fix _pode_samples.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus authored Nov 21, 2024
1 parent 07cbeac commit b4a8509
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/harmonic_oscillator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,12 @@ module HarmonicOscillator

qsamples = vec(collect.(collect(Base.Iterators.product(qs...))))
psamples = vec(collect.(collect(Base.Iterators.product(ps...))))
samples = vec(collect(Base.Iterators.product(qsamples, psamples)))
zsamples = Base.Iterators.product(qsamples, psamples)

(q = qsamples, p = psamples)
return (
q = vec([zs[1] for zs in zsamples]),
p = vec([zs[2] for zs in zsamples]),
)
end


Expand Down

0 comments on commit b4a8509

Please sign in to comment.