Finished localUpdate() method in ToricCode_1_q class