sGate
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Syntax
Description
applies an S gate to a single target qubit and returns a g = sGate(targetQubit)quantum.gate.SimpleGate object.
If targetQubit is a vector of qubit indices, sGate
returns a column vector of gates, where g(i) represents an 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 sGate(targetQubit) is equivalent to
r1Gate(targetQubit,pi/2).
Examples
Input Arguments
More About
Version History
Introduced in R2023a
See Also
quantumCircuit | quantum.gate.SimpleGate | siGate | tGate | tiGate | r1Gate | getMatrix