Skip to main content

RotXY

Trait RotXY 

Source
pub trait RotXY<T>
where T: Config,
{ // Required method fn r( &mut self, addr0: usize, axis_angle: <T as Config>::Coeff, theta: <T as Config>::Coeff, ); }
Expand description

Rotation about an axis in the x/y plane: R(axis_angle, θ) = exp(-i θ/2 · (cos(axis_angle)·X + sin(axis_angle)·Y)).

The in-plane axis is X rotated about Z by axis_angle, so R(axis_angle, θ) = RZ(axis_angle)·RX(θ)·RZ(−axis_angle).

Required Methods§

Source

fn r( &mut self, addr0: usize, axis_angle: <T as Config>::Coeff, theta: <T as Config>::Coeff, )

R(axis_angle, θ) on qubit addr0.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Config, I, C: SparseVector<Complex<T::Coeff>, I>> RotXY<T> for GeneralizedTableau<T, I, C>
where GeneralizedTableau<T, I, C>: RotationOne<T>,

Source§

impl<T> RotXY<T> for PauliSum<T>
where T: Config, PauliSum<T>: RotationOne<T>,