Quantum Computing Questions
The controlled-S gate, also known as the controlled-phase gate or C-S gate, is a two-qubit gate in quantum computing. It applies a phase shift of π (or 180 degrees) to the target qubit if and only if the control qubit is in the state |1⟩. If the control qubit is in the state |0⟩, no phase shift is applied to the target qubit. The controlled-S gate is commonly used in quantum algorithms and quantum error correction codes.