ryyGate
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
applies an Ising YY coupling gate to two target qubits with a phase parameter
g
= ryyGate(targetQubit1
,targetQubit2
,theta
)theta
and returns a quantum.gate.SimpleGate
object.
If
targetQubit1
,targetQubit2
, andtheta
are vectors of the same length,ryyGate
returns a column vector of gates, whereg(i)
represents an Ising YY coupling gate applied to thei
th element triplet oftargetQubit1
,targetQubit2
, andtheta
.If any of
targetQubit1
,targetQubit2
, ortheta
is 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
targetQubit1
andtargetQubit2
must not be the same.
Examples
Input Arguments
More About
Version History
Introduced in R2023a