rxGate
Installation Required: This functionality requires MATLAB Support Package for Quantum Computing.
Description
applies an x-axis rotation gate to a single target qubit and returns a
g = rxGate(targetQubit,theta)quantum.gate.SimpleGate object. This gate rotates the qubit state around the
x-axis by an angle of theta.
If
targetQubitandthetaare vectors of the same length,rxGatereturns a column vector of gates, whereg(i)represents an x-axis rotation gate applied to a qubit with indextargetQubit(i)with a rotation angle oftheta(i).If either
targetQubitorthetais a scalar, and the other input is a vector, then MATLAB® expands the scalar to match the size of the vector input.
Examples
Input Arguments
More About
Version History
Introduced in R2023a
See Also
quantumCircuit | quantum.gate.SimpleGate | ryGate | rzGate | r1Gate | crxGate | getMatrix