def _CNOT_right(self, q, r):
        r"""Right multiplication version of CNOT gate."""
        self.G[:, q] ^= self.G[:, r]
        self.F[:, r] ^= self.F[:, q]
        self.M[:, q] ^= self.M[:, r]
Right multiplication version of CNOT gate.
cirq-core/cirq/sim/clifford/stabilizer_state_ch_form.py