1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#[cfg(test)]
mod tests;

mod types;
mod math;
mod bits_iter;

pub mod prelude {
    pub use super::operator::Op;
    pub use super::register::{VReg, QReg};
    pub use super::threads::qvnt_num_threads;

    pub mod consts {
        pub const _1: crate::types::C = crate::types::C{ re: 1.0, im: 0.0 };
        pub const _0: crate::types::C = crate::types::C{ re: 0.0, im: 0.0 };
        pub const _i: crate::types::C = crate::types::C{ re: 0.0, im: 1.0 };

        pub const SQRT_1_2: crate::types::R = crate::types::SQRT_2 * 0.5;
    }
}

pub mod operator;
pub mod register;
pub mod threads;