WagnerGroup / pyqmc

Python library for real space quantum Monte Carlo
MIT License
81 stars 33 forks source link

cleaner way to check orthogonal lattice vectors #416

Closed willwheelera closed 8 months ago

willwheelera commented 8 months ago

instead of checking each pair of lattice vectors manually (and separating 2d and 3d cases), dot the lattice vectors with themselves and check that the matrix is diagonal.