#[repr(C)]pub struct SubDiagonalOp {
pub numQubits: c_int,
pub numElems: c_longlong,
pub real: *mut f64,
pub imag: *mut f64,
}
Expand description
Represents a diagonal complex operator of a smaller dimension than the full Hilbert state of a \p Qureg.
@ingroup type @author Tyson Jones
Fields§
§numQubits: c_int
The number of target qubits which this SubDiagonalOp can operate upon
numElems: c_longlong
The number of diagonal elements, i.e. 2^numQubits
real: *mut f64
The real values of the 2^numQubits complex elements
imag: *mut f64
The imaginary values of the 2^numQubits complex elements
Trait Implementations§
Source§impl Clone for SubDiagonalOp
impl Clone for SubDiagonalOp
Source§fn clone(&self) -> SubDiagonalOp
fn clone(&self) -> SubDiagonalOp
Returns a copy of the value. Read more
1.0.0 · 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 SubDiagonalOp
impl Debug for SubDiagonalOp
impl Copy for SubDiagonalOp
Auto Trait Implementations§
impl Freeze for SubDiagonalOp
impl RefUnwindSafe for SubDiagonalOp
impl !Send for SubDiagonalOp
impl !Sync for SubDiagonalOp
impl Unpin for SubDiagonalOp
impl UnwindSafe for SubDiagonalOp
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