pub trait RotationOne<T>where
T: Config,{
// Required method
fn rotate_1(
&mut self,
axis: Pauli,
addr0: usize,
theta: <T as Config>::Coeff,
);
// Provided methods
fn rx(&mut self, addr0: usize, theta: impl Into<<T as Config>::Coeff>) { ... }
fn ry(&mut self, addr0: usize, theta: impl Into<<T as Config>::Coeff>) { ... }
fn rz(&mut self, addr0: usize, theta: impl Into<<T as Config>::Coeff>) { ... }
fn rx_many(
&mut self,
targets: &[usize],
theta: impl Into<<T as Config>::Coeff>,
) { ... }
fn ry_many(
&mut self,
targets: &[usize],
theta: impl Into<<T as Config>::Coeff>,
) { ... }
fn rz_many(
&mut self,
targets: &[usize],
theta: impl Into<<T as Config>::Coeff>,
) { ... }
}Expand description
Single-qubit Pauli rotations exp(-i θ/2 · P).
Required Methods§
Provided Methods§
Sourcefn rx_many(&mut self, targets: &[usize], theta: impl Into<<T as Config>::Coeff>)
fn rx_many(&mut self, targets: &[usize], theta: impl Into<<T as Config>::Coeff>)
Explicit batched RX(θ).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".