Changing from logical_not to tilde requires this
Make pbc mandatory, move code inside if, where it is only used, add assert of unused q_v addition when gamma false
Make pbc mandatory, move code inside if, where it is only used, add assert of unused q_v addition when gamma false