S Gate
Definition
The S gate is a single-qubit gate that rotates the qubit state by 90 degrees around the of the Bloch sphere. The relationship between the S gate and the Pauli-Z gate is similar to the relationship between the T gate and the gate. The S gate is also known as the gate. It is also called as Clifford gate or -gate.
Effect on qubit
The S gate changes the phase of the qubit by 90 degrees. The S gate changes the phase of the qubit from to and vice versa, where is the imaginary unit. (Note that ) [An exact behaviour of T gate, just the difference in the phase change]
Types
The S gate has only one type.
Matrix representation
The matrix representation of the S gate is:
S gate
:
The matrix can also be represented as
where is equal to .
Circuit representation
The S gate is represented as ───S───
in the circuit.
Example
Let's take an example to demonstrate the S gate.
- S Gate Suppose we have a qubit initially in the state , represented as:
The S gate is represented by the following matrix:
To apply the S gate to the qubit , we perform a matrix multiplication of the S gate matrix with the state vector representing .
Performing the matrix multiplication:
Simplifying:
Thus, the S gate does not change the state of the qubit .
It does not affect the state of the qubit as the phase of the qubit is already . So, the S gate does not introduce any phase change to the qubit . Instead, it introduces a phase of degrees to the qubit .
Therefore, after applying the S gate, the state of the qubit remains unchanged, indicating that the S gate only changes the phase of the qubit.
Now, let's see the effect of the S gate on the qubit .
Suppose we have a qubit initially in the state , represented as:
To apply the S gate to the qubit , we perform a matrix multiplication of the S gate matrix with the state vector representing .
Performing the matrix multiplication:
Simplifying:
Thus, the S gate changes the state of the qubit to .
Therefore, the S gate introduces a phase of degrees to the qubit .
Hence, the S gate changes the phase of the qubit by 90 degrees.
The S gate is used in various quantum algorithms and quantum circuits to introduce phase changes to the qubits.
Properties
This gate has exact same properties as the T gate ie. and and .
Conjugate Transpose
The conjugate transpose of the S gate is:
Inverse
The inverse of the S gate is:
Dagger
The dagger of the S gate is: