-
Notifications
You must be signed in to change notification settings - Fork 21
Many-Body Ground State Test #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test developed for the iDEA many-body system using the pytest library. Two electron ground state system with 'uu' or 'ud' spin configuration for Hooke's atom. Contains wo test classes,: TestShort ~ 20 seconds. TestLong ~ 5/6 mins. Tests the density, wavefunction and total energy against an analytical solution for the specific system. Example of execution for TestShort: pytest manybody.py::TestShort
Automation for many body ground state test in 'uu' and 'ud' spin configurations.
Fixed file path directory for test
Fixed error of incorrect pytest class identifier.
Install idea from repository not pip
Rename for easier identification between test classes. Cache dependencies to improve runtime performance - avoids dependencies install on each run
Comment updates, name clarification.
General code/comment clean up.
Comment alteration.
Workflow to run long form many body test manually via GitHub actions.
comment update
Name fix
JackWetherell
approved these changes
Jun 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have developed a test for the many body functionality of iDEA. The test simulates a two electron ground state (k=0) system with either 'uu' or 'dd' spin configuration in an external harmonic oscillator potential with a softened interaction potential (Hooke's atom).
The test is split into two systems, the analytical test system and the iDEA test system. The program runs both systems and then tests the probability density, wavefunction and total energy against the known analytical solution to determine if they are within a user specified tolerance.
The test makes use of the pytest library. The test file, test_manybody.py, contains two test classes: TestShort and TestLong.
TestShort is designated to be ran upon push or pull requests via GitHub actions, however, it may also be initiated manually. I have hence added a .github/workflows folder to the repository containing .yml files allowing the tests to be automated. TestLong is a much more finely tuned test designed to be ran manually via the 'Actions' tab if a higher level of precision is required.