Inverse T gate
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
targetQubit is a vector of qubit indices,
tiGate returns a column vector of gates, where
represents an inverse T gate applied to a qubit with index
Applying this gate is equivalent to applying the R1 gate with a rotation angle of –π/4,
tiGate(targetQubit) is equivalent to
Inverse T Gate and Its Matrix Representation
Create an inverse T gate that acts on a single qubit.
g = tiGate(1)
g = SimpleGate with properties: Type: "ti" ControlQubits: [1×0 double] TargetQubits: 1 Angles: [1×0 double]
Get the matrix representation of the gate.
M = getMatrix(g)
M = 1.0000 + 0.0000i 0.0000 + 0.0000i 0.0000 + 0.0000i 0.7071 - 0.7071i
Array of Inverse T Gates
Create an array of inverse T gates that act on qubits with indices 1 to 4.
g = tiGate(1:4)
g = 4×1 SimpleGate array with gates: Id Gate Control Target 1 ti 1 2 ti 2 3 ti 3 4 ti 4
targetQubit — Target qubit of gate
positive integer scalar | positive integer vector
Target qubit of the gate, specified as a positive integer scalar index or vector of qubit indices.
Matrix Representation of Inverse T Gate
The matrix representation of an inverse T gate applied to a single qubit is
Applying this gate is equivalent to applying the R1 gate with a rotation angle of –π/4. Applying the inverse T gate four times is equivalent to applying the Pauli Z gate.
Introduced in R2023a