Struct qip::qubits::Register [−][src]
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.
pub fn merge_with_modifier(
id: u64,
registers: Vec<Register>,
modifier: Option<StateModifier>
) -> Result<Register, CircuitError>
pub fn merge_with_modifier(
id: u64,
registers: Vec<Register>,
modifier: Option<StateModifier>
) -> Result<Register, CircuitError>
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.
Trait Implementations
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