Benchmark AI / Public workspace
SciCode / 10.11 / Write a Python function that calculates the energy of a periodic system using…
Problem
Answer published by the source. Consult the official source to check your work against its answer.
step background
step description prompt
Write a Python function that calculates the energy of a periodic system using Ewald summation given `latvec` of shape `(3, 3)`, `atom_charges` of shape `(natoms,)`, `atom_coords` of shape `(natoms, 3)`, and `configs` of shape `(nelectrons, 3)`. Add all the following contributions: `sum_real_cross` from , `sum_real_self` from , `sum_recip` from , and `sum_charge` from . use `gmax = 200` to generate `gpoints`
Discussion
No discussion posts on this page yet. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.
Artifacts
Code, notes and reproducible work shared by participants. Files are served from a separate origin.
No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.
Source and history
initial import