yGate
Syntax
Description
Add-On Required: This feature requires the MATLAB Support Package for Quantum Computing add-on.
applies a Pauli Y gate to a single target qubit and returns a g = yGate(targetQubit)quantum.gate.SimpleGate object.
If targetQubit is a vector of qubit indices, yGate
returns a column vector of gates, where g(i) represents a Pauli Y gate
applied to a qubit with index targetQubit(i).
Examples
Input Arguments
More About
Version History
Introduced in R2023a