pub struct BatchPhaseData {
pub phases: SmallVec<[(usize, Complex64); 8]>,
}Expand description
Data for a batched controlled-phase gate.
Multiple cphase gates sharing a control qubit are fused into one pass.
Each entry is (target_qubit, phase). The control qubit is stored in the
instruction’s targets[0].
Fields§
§phases: SmallVec<[(usize, Complex64); 8]>Trait Implementations§
Source§impl Clone for BatchPhaseData
impl Clone for BatchPhaseData
Source§fn clone(&self) -> BatchPhaseData
fn clone(&self) -> BatchPhaseData
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 moreSource§impl Debug for BatchPhaseData
impl Debug for BatchPhaseData
Source§impl PartialEq for BatchPhaseData
impl PartialEq for BatchPhaseData
Source§fn eq(&self, other: &BatchPhaseData) -> bool
fn eq(&self, other: &BatchPhaseData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BatchPhaseData
Auto Trait Implementations§
impl Freeze for BatchPhaseData
impl RefUnwindSafe for BatchPhaseData
impl Send for BatchPhaseData
impl Sync for BatchPhaseData
impl Unpin for BatchPhaseData
impl UnsafeUnpin for BatchPhaseData
impl UnwindSafe for BatchPhaseData
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