rzzGate
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
applies an Ising ZZ coupling gate to two target qubits with a phase parameter
g = rzzGate(targetQubit1,targetQubit2,theta)theta and returns a quantum.gate.SimpleGate object.
If
targetQubit1,targetQubit2, andthetaare vectors of the same length,rzzGatereturns a column vector of gates, whereg(i)represents an Ising ZZ 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.
Examples
Input Arguments
More About
Version History
Introduced in R2023a