Make _normalize_matrix_blocks check for norbs
Currently _normalize_matrix_blocks
only checks for the length of the first axis of the data it receives; it should check the shape of all axes.
This is in principle a simple change, but becomes non-local at the call sites of _normalize_matrix_blocks
because we will need to plumb through the norbs
information (or refactor so that plumbing is not necessary).
-
@anton-akhmerov started a discussion: (+1 comment) Consider making normalize_hamiltonian_data check the full shapes of the resulting array.
Edited by Joseph Weston