Skip to content

NAO_MAX=14 vs 13 orbitals for carbon-petadiamond in the model pipeline #85

@ebarati

Description

@ebarati

Greetings,

I’m trying to understand why the workflow uses nao_max=14 orbitals for carbon-petadiamond instead of the 13 NAOs produced by ABACUS.

Right now the model predicts tensors with 14×14 (196) blocks, while the raw ABACUS matrices for carbon are 13×13 (169). The NPZ builder crashes because it assumes nao_max=14 and applies a boolean mask sized for 196 entries, but the ABACUS data only has 169. Since ABACUS will not output 14 orbitals unless the basis contains them, modifying the physical matrices does not seem correct.

From debugging, it looks like the network was trained with padded orbital blocks (nao_max=14), so the NPZ generator may need to zero-pad 13×13 → 14×14 before flattening rather than forcing ABACUS output to match.

Can you clarify why nao_max=14 was chosen for carbon and whether padding during data prep is the intended behavior? Also, band_cal seems to only support ABACUS Hamiltonians with 27 or 40 orbitals, so I want to confirm the expected format.

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions