def cz(self, q0, q1): """ operate CZ gate. Parameters ---------- q : int qubit id. Returns ------- self : instans of Stabilizer """ stabilizer_operate_qgate(self, cfg.CONTROLLED_Z, q0, q1) return self
def h(self, q): """ operate H gate. Parameters ---------- q : int qubit id. Returns ------- self : instans of Stabilizer """ stabilizer_operate_qgate(self, cfg.HADAMARD, q, 0) return self
def s_dg(self, q): """ operate S dagger gate. Parameters ---------- q : int qubit id. Returns ------- self : instans of Stabilizer """ stabilizer_operate_qgate(self, cfg.PHASE_SHIFT_S_, q, 0) return self
def z(self, q): """ operate Z gate. Parameters ---------- q : int qubit id. Returns ------- self : instans of Stabilizer """ stabilizer_operate_qgate(self, cfg.PAULI_Z, q, 0) return self