pub struct RotationLayer {
pub ry: Vec<f64>,
pub rz: Vec<f64>,
}Expand description
One layer of the hardware-efficient variational ansatz (paper section 3.2):
a single-qubit Ry(θ)·Rz(φ) rotation per qubit, followed by a linear CNOT
entanglement chain (U_ent). ry/rz carry one angle per qubit.
Fields§
§ry: Vec<f64>§rz: Vec<f64>Trait Implementations§
Source§impl Clone for RotationLayer
impl Clone for RotationLayer
Source§fn clone(&self) -> RotationLayer
fn clone(&self) -> RotationLayer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RotationLayer
impl RefUnwindSafe for RotationLayer
impl Send for RotationLayer
impl Sync for RotationLayer
impl Unpin for RotationLayer
impl UnsafeUnpin for RotationLayer
impl UnwindSafe for RotationLayer
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