Expand description
§ruvector-consciousness — SOTA Consciousness Metrics
Ultra-optimized Rust implementation of consciousness computation:
| Module | Algorithm | Complexity |
|---|---|---|
phi | IIT Φ (exact) | O(2^n · n²) |
phi | IIT Φ (spectral) | O(n² log n) |
phi | IIT Φ (stochastic) | O(k · n²) |
emergence | Causal emergence / EI | O(n³) |
collapse | Quantum-inspired MIP search | O(√N · n²) |
§Features
- SIMD-accelerated KL-divergence, entropy, dense matvec (AVX2)
- Zero-alloc hot paths via bump arena
- Sublinear partition search via spectral and quantum-collapse methods
- Auto-selecting algorithm based on system size
§Example
use ruvector_consciousness::types::{TransitionMatrix, ComputeBudget};
use ruvector_consciousness::phi::auto_compute_phi;
// 4-state system (2 binary elements)
let tpm = TransitionMatrix::new(4, vec![
0.5, 0.25, 0.25, 0.0,
0.5, 0.25, 0.25, 0.0,
0.5, 0.25, 0.25, 0.0,
0.0, 0.0, 0.0, 1.0,
]);
let result = auto_compute_phi(&tpm, Some(0), &ComputeBudget::exact()).unwrap();
println!("Φ = {:.6}, algorithm = {}", result.phi, result.algorithm);Modules§
- arena
- Bump allocator for per-computation scratch space.
- bounds
- PAC-style approximation guarantees for Φ estimation.
- ces
- Cause-Effect Structure (CES) computation — the “shape” of experience.
- collapse
- Quantum-inspired consciousness collapse.
- emergence
- Causal emergence and effective information computation.
- error
- Error types for consciousness computation.
- geomip
- GeoMIP: Geometric Minimum Information Partition search.
- iit4
- IIT 4.0 intrinsic information and cause-effect repertoires.
- phi
- Integrated Information Theory (IIT) Φ computation.
- phi_id
- Integrated Information Decomposition (ΦID).
- pid
- Partial Information Decomposition (PID).
- rsvd_
emergence - Randomized SVD-based causal emergence.
- simd
- SIMD-accelerated operations for consciousness computation.
- streaming
- Online/streaming Φ estimation for time-series data.
- traits
- Trait hierarchy for consciousness computation engines.
- types
- Core types for consciousness computation.