ryyGate
Description
Add-On Required: This feature requires the MATLAB Support Package for Quantum Computing add-on.
applies an Ising YY coupling gate to two target qubits with a phase angle
g = ryyGate(targetQubit1,targetQubit2,theta)theta and returns a quantum.gate.SimpleGate object.
If
targetQubit1,targetQubit2, andthetaare vectors of the same length,ryyGatereturns a column vector of gates, whereg(i)represents an Ising YY coupling gate applied to theith element triplet oftargetQubit1,targetQubit2, andtheta.If any of
targetQubit1,targetQubit2, orthetais a scalar, and at least one of the inputs is a vector, then MATLAB® expands the scalar to match the size of the vector input.The qubit indices in each element pair of
targetQubit1andtargetQubit2must not be the same.