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