pub const PLANCK_LENGTH: f64 = 1.616255e-35;
pub const PLANCK_TIME: f64 = 5.391247e-44;
pub const PLANCK_ENERGY: f64 = 1.95616e9;
pub const PLANCK_MASS: f64 = 2.176434e-8;
pub const BOLTZMANN_CONSTANT: f64 = 1.380649e-23;
pub const SPEED_OF_LIGHT: f64 = 299792458.0;
pub const GRAVITATIONAL_CONSTANT: f64 = 6.67430e-11;
pub const REDUCED_PLANCK: f64 = 1.054571817e-34;
pub const BH_ENTROPY_COEFF: f64 = 0.25;
pub const DEFAULT_BOND_DIM_QUBIT: u32 = 2;
pub const DEFAULT_BOND_DIM_QUQUART: u32 = 4;
pub const DEFAULT_BOND_DIM_QUDIT: u32 = 8;
pub const MAX_TENSOR_VERTICES: u32 = 256;
pub const MAX_TENSOR_EDGES: u32 = 2048;
pub const MAX_BOND_DIMENSION: u32 = 16;
pub const MIN_BOND_DIMENSION: u32 = 2;
pub const DEFAULT_COUPLING_STRENGTH: u64 = 500_000;
pub const MAX_ENTROPY_FIXED: u64 = u64::MAX / 2;
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn test_constants_are_positive() {
assert!(PLANCK_LENGTH > 0.0);
assert!(PLANCK_TIME > 0.0);
assert!(BOLTZMANN_CONSTANT > 0.0);
assert!(SPEED_OF_LIGHT > 0.0);
assert!(GRAVITATIONAL_CONSTANT > 0.0);
}
#[test]
fn test_bond_dimensions() {
assert_eq!(DEFAULT_BOND_DIM_QUBIT, 2);
assert_eq!(DEFAULT_BOND_DIM_QUQUART, 4);
assert!(MAX_BOND_DIMENSION >= DEFAULT_BOND_DIM_QUDIT);
}
#[test]
fn test_network_limits() {
assert!(MAX_TENSOR_VERTICES > 0);
assert!(MAX_TENSOR_EDGES > 0);
assert!(MAX_TENSOR_EDGES >= MAX_TENSOR_VERTICES);
}
}