Skip to content

Conversation

@mohanchen
Copy link
Collaborator

Remove DM from elecstate to avoid dynamic_cast operation to get density matrix.

@mohanchen mohanchen added Refactor Refactor ABACUS codes The Absolute Zero Reduce the "entropy" of the code to 0 labels Nov 4, 2025
@mohanchen mohanchen requested a review from xuan112358 November 4, 2025 08:39
Copy link
Collaborator

@AsTonyshment AsTonyshment left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Separating DM from elecstate will enable us to avoid awkwardly invoking DM using methods like dynamic_cast.

@mohanchen mohanchen merged commit e12c403 into deepmodeling:develop Nov 5, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Refactor Refactor ABACUS codes The Absolute Zero Reduce the "entropy" of the code to 0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants