Struct qmc::sse::qmc_traits::op_container::BasicOp[][src]

pub struct BasicOp<Vars, SubState> where
    Vars: FromIterator<usize> + AsRef<[usize]> + AsMut<[usize]> + Clone + Debug,
    SubState: FromIterator<bool> + AsRef<[bool]> + AsMut<[bool]> + Clone + Debug
{ /* fields omitted */ }
Expand description

An standard op which covers a number of variables and changes the state from input to output.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The list of op variables.

The list of op input and output states.

Make a diagonal op.

Make an offdiagonal op.

Check if the op is diagonal (makes no state changes).

Get the relative index of a variable.

Get the set of variables used for this op.

Get the associated bond number for the op.

Get the input state for the op.

Get the output state for the op.

Clone the op and edit inputs and outputs.

Clone the op and edit inputs and outputs. Must edit states symmetrically (diagonal stays diagonal, offdiagonal stays offdiagonal). Read more

Get the input state for the op.

Get the output state for the op.

If the op is always a constant under any bit flip in input or output, then it can be used to mark the edges of clusters. Read more

Edit inputs and outputs.

Edit inputs and outputs. Must edit states symmetrically (diagonal stays diagonal, offdiagonal stays offdiagonal). Read more

Make vars (this is here mostly due to rust bug 38078)

Make substate (this is here mostly due to rust bug 38078)

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.