pytc.vmc.test.test_enhancementΒΆ
Tests for VMC optimization enhancements.
Validates that the optimized implementations produce numerically identical results to the original code, then tests correctness at increasing system sizes.
Classes
Integration coverage for batched GN accumulation in optimize_ref_var. |
|
Test that Jacobian sub-sampling produces valid optimization steps. |
|
Test that merged gradient+Jacobian gives identical results to the original. |
|
Test full optimize_ref_var with different system sizes. |
|
Test that cached log_psi/psi_sign values in Walker are correct. |
|
Test Sherman-Morrison rank-1 updates for single-electron moves. |
Functions
Create a hydrogen chain with Bohr spacing. |
|
Helper to create a test system (molecule + ansatz + walkers + params). |