pub struct Operation {
pub kind: OpKind,
pub left_terms: Vec<Term>,
pub left_bias: f64,
pub gate_terms: Vec<Term>,
pub gate_bias: f64,
pub depth: u32,
pub preserve_rounding: bool,
pub macro_op: Option<Macro>,
pub index_read: Option<IndexRead>,
pub rounding_point: Option<RoundingPointKind>,
pub comparison_bit: bool,
pub comparison: Option<Comparison>,
}Fields§
§kind: OpKind§left_terms: Vec<Term>§left_bias: f64§gate_terms: Vec<Term>For an index read, the gate side holds the index form.
gate_bias: f64§depth: u32§preserve_rounding: bool§macro_op: Option<Macro>§index_read: Option<IndexRead>§rounding_point: Option<RoundingPointKind>§comparison_bit: boolSet on the bit that emit_compare returns.
comparison: Option<Comparison>On that bit: the comparison it decides, for ComparisonGradient::Surrogate.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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