tGate
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Syntax
Description
applies a T gate to a single target qubit and returns a g = tGate(targetQubit)quantum.gate.SimpleGate object.
If targetQubit is a vector of qubit indices, tGate
returns a column vector of gates, where g(i) represents a T gate applied
to a qubit with index targetQubit(i).
Applying this gate is equivalent to applying the R1 gate with a rotation angle of π/4,
meaning that tGate(targetQubit) is equivalent to
r1Gate(targetQubit,pi/4).
Examples
Input Arguments
More About
Version History
Introduced in R2023a
See Also
quantumCircuit | quantum.gate.SimpleGate | tiGate | sGate | siGate | r1Gate | getMatrix