[−][src]Struct qip::qubits::Register
A Register object, possible representing multiple physical qubit indices.
Fields
indices: Vec<u64>
The set of indices (qubits) represented by this Register.
Implementations
impl Register
[src]
pub fn handle(&self) -> RegisterHandle
[src]
Create a handle for feeding values.
pub fn merge_with_modifier(
id: u64,
registers: Vec<Register>,
modifier: Option<StateModifier>
) -> Result<Register, CircuitError>
[src]
id: u64,
registers: Vec<Register>,
modifier: Option<StateModifier>
) -> Result<Register, CircuitError>
Merge Registers to form a new Register object.
pub fn split(
ida: u64,
idb: u64,
r: Register,
indices: &[u64]
) -> Result<(Register, Option<Register>), CircuitError>
[src]
ida: u64,
idb: u64,
r: Register,
indices: &[u64]
) -> Result<(Register, Option<Register>), CircuitError>
Split the relative indices out of r
into its own qubit, remaining live in second qubit.
pub fn split_absolute(
ida: u64,
idb: u64,
r: Register,
selected_indices: &[u64]
) -> Result<(Register, Option<Register>), CircuitError>
[src]
ida: u64,
idb: u64,
r: Register,
selected_indices: &[u64]
) -> Result<(Register, Option<Register>), CircuitError>
Split a Register in two, with one having the indices in selected_indices
pub fn make_measurement_handle(
id: u64,
r: Register
) -> (Register, MeasurementHandle)
[src]
id: u64,
r: Register
) -> (Register, MeasurementHandle)
Make a measurement handle and a Register which depends on that measurement.
pub fn add_deps(r: Register, deps: Vec<Rc<Register>>) -> Register
[src]
Add additional Register dependencies to a given Register.
pub fn n(&self) -> u64
[src]
Get number of qubits in this Register object
Trait Implementations
impl Debug for Register
[src]
impl Eq for Register
[src]
impl Ord for Register
[src]
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Register> for Register
[src]
impl PartialOrd<Register> for Register
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Register
impl !Send for Register
impl !Sync for Register
impl Unpin for Register
impl !UnwindSafe for Register
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,