Quantum Computing, Quantum, Quantum Physics, AI, Machine Learning.
Unlike the CNOT gate, which flips the state of the target qubit, the CZ gate applies a phase shift to the target qubit based on the state of the control qubit. If the control qubit is in the state |0>, the CZ gate does not affect the target qubit. However, if the control qubit is in the state |1>,