Struct rusq::Qubit [] [src]

pub struct Qubit {
    pub index: usize,
}

A type for a qubit.

This qubit type just represents the index in a given quantum machine. All "states" are carried by a type implementing QuantumMachine trait.

Fields

The index in a given quantum machine.

Trait Implementations

impl Debug for Qubit
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Qubit
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Qubit
[src]

impl Clone for Qubit
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Qubit
[src]