Struct qip::qubits::Register[][src]

pub struct Register {
    pub indices: Vec<u64>,
    // some fields omitted
}
Expand description

A Register object, possible representing multiple physical qubit indices.

Fields

indices: Vec<u64>

The set of indices (qubits) represented by this Register.

Implementations

Create a handle for feeding values.

Merge Registers to form a new Register object.

Split the relative indices out of r into its own qubit, remaining live in second qubit.

Split a Register in two, with one having the indices in selected_indices

Make a measurement handle and a Register which depends on that measurement.

Add additional Register dependencies to a given Register.

Get number of qubits in this Register object

Trait Implementations

Formats the value using the given formatter. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

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

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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 alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. 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.