WagnerGroup / pyqmc

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

cleaner way to check orthogonal lattice vectors #416

Closed willwheelera closed 10 months ago

willwheelera commented 10 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.