Skip to content

Add HamiltonianSystem with AD support and AugmentedHamiltonianTrait#229

Merged
ocots merged 1 commit into
developfrom
feature/hamiltonian-system
May 19, 2026
Merged

Add HamiltonianSystem with AD support and AugmentedHamiltonianTrait#229
ocots merged 1 commit into
developfrom
feature/hamiltonian-system

Conversation

@ocots
Copy link
Copy Markdown
Member

@ocots ocots commented May 19, 2026

  • Add AugmentedHamiltonianTrait and AbstractAugmentedHamiltonianConfig in Common module
  • Update AbstractHamiltonianSystem to include AD trait parameter (AT)
  • Add HamiltonianSystem struct with AD backend support, mirroring HamiltonianVectorFieldSystem
  • Implement build_rhs_augmented with batch compatibility checks for matrix inputs
  • Add build_system overloads for Data.Hamiltonian with AD backend
  • Update all references to AbstractHamiltonianSystem to include AT parameter:
    • AbstractHamiltonianFlow in Flows
    • MultiPhaseHamiltonianFlow in MultiPhase
    • All test files with fake Hamiltonian systems
  • Add comprehensive docstrings following documentation standards
  • Add tests for HamiltonianSystem, ad_trait, build_rhs_augmented, and type stability
  • All 1786 tests passing

- Add AugmentedHamiltonianTrait and AbstractAugmentedHamiltonianConfig in Common module
- Update AbstractHamiltonianSystem to include AD trait parameter (AT)
- Add HamiltonianSystem struct with AD backend support, mirroring HamiltonianVectorFieldSystem
- Implement build_rhs_augmented with batch compatibility checks for matrix inputs
- Add build_system overloads for Data.Hamiltonian with AD backend
- Update all references to AbstractHamiltonianSystem to include AT parameter:
  - AbstractHamiltonianFlow in Flows
  - MultiPhaseHamiltonianFlow in MultiPhase
  - All test files with fake Hamiltonian systems
- Add comprehensive docstrings following documentation standards
- Add tests for HamiltonianSystem, ad_trait, build_rhs_augmented, and type stability
- All 1786 tests passing
@ocots ocots merged commit f289059 into develop May 19, 2026
6 checks passed
@ocots ocots deleted the feature/hamiltonian-system branch May 19, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant