The Controlled Z-gate
Learn about the controlled Z-gate.
We'll cover the following...
When we apply the -gate on separate qubits, we usually see the phase shift for those states where the respective qubit is in state . When both qubits are in-state , the phase shift adds up. Since the -gate accounts for a phase shift by half a wavelength, applying it twice results in the initial phase. Hence, the state has the same phase as a state .
Sometimes we don’t want this effect. We might want to switch the phase of a single state. This is where, the controlled ...