pub struct Config {
pub threads: u32,
pub print: bool,
pub qubits: u8,
}
Expand description
Config for simulations that are run using the CLI
Fields§
§threads: u32
The number of threads to distribute the workload.
u32
is used to represent number of threads since 4,294,967,295 is a
reasonable upperbound. If you have access to a matrioshka brain, and you
need a larger data type, please reach out.
print: bool
Whether or not to print the State represented as a table.
qubits: u8
The number of qubits that will make up the State. State vector size is 2^{n}, where n is the # of qubits. Assuming single precision complex numbers, the upper bound with u8 is 2^255 * 64 bit ≈ 4.632 * 10^{65} TB (terabytes). Thus, using u8 suffices.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more