rquant 0.0.3

A quantum computing library for qubit manipulation and observation.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::quantum::types::quantum_position::QuantumPosition;

/// [`Qubit`] is an informational bit that can be both 0 and 1
/// simultaneously due to superposition.
#[derive(Debug, Clone, PartialEq)]
pub struct Qubit {
    /// A collection of [`QuantumPosition`] that represents a timeline
    /// of movement in complex vector space.
    ///
    /// The first element represents the current [`Qubit`] position,
    /// and the last element represents the initial [`Qubit`] position.
    pub positions: Vec<QuantumPosition>,
}