What is the controlled-Z gate?

Quantum Computing Questions



80 Short 80 Medium 76 Long Answer Questions Question Index

What is the controlled-Z gate?

The controlled-Z gate, also known as the CNOT gate or the controlled Pauli-Z gate, is a two-qubit gate in quantum computing. It performs a controlled phase flip operation on the target qubit (the second qubit) if and only if the control qubit (the first qubit) is in the state |1⟩. If the control qubit is in the state |0⟩, no operation is applied to the target qubit. The controlled-Z gate is commonly used in quantum algorithms and quantum error correction codes.