pub struct RotationZ {
pub target: QubitId,
pub theta: f64,
}Expand description
Rotation around Z-axis
Fields§
§target: QubitIdTarget qubit
theta: f64Rotation angle (in radians)
Trait Implementations§
Source§impl GateOp for RotationZ
impl GateOp for RotationZ
Source§fn is_parameterized(&self) -> bool
fn is_parameterized(&self) -> bool
Returns true if this gate is parameterized
Source§fn matrix(&self) -> QuantRS2Result<Vec<Complex64>>
fn matrix(&self) -> QuantRS2Result<Vec<Complex64>>
Returns the matrix representation of this gate
Source§fn num_qubits(&self) -> usize
fn num_qubits(&self) -> usize
Returns the number of qubits this gate acts on
impl Copy for RotationZ
Auto Trait Implementations§
impl Freeze for RotationZ
impl RefUnwindSafe for RotationZ
impl Send for RotationZ
impl Sync for RotationZ
impl Unpin for RotationZ
impl UnwindSafe for RotationZ
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more