fn validate_particle_blocks( local: &[DMatrix<Complex>], positions: &[[f64; 3]], pidxs: impl ExactSizeIterator<Item = usize>, ) -> Result<()>