| Recommend this page to a friend! |
| Packages of madi kais | PHP KAI Harness | doc/quantum/dirac_complexity_routing.md | Download |
|
|
||||||||||||||||||||
Dirac-Inspired Dynamic Complexity Routing Specification1. Concept & RationaleTraditional AI agents use static rules or a single, resource-heavy model for all tasks. This results in either poor performance on complex issues or excessive API costs on simple greetings.
2. Mathematical FormulationThe complexity state vector $| \psi \rangle$ is defined as: $$| \psi \rangle = c_s | \text{Simple} \rangle + c_d | \text{Complicated} \rangle + c_x | \text{Complex} \rangle$$ where $c_s, c_d, c_x \in \mathbb{C}$ are the probability amplitudes representing the query's alignment with each domain. Amplitude CoefficientsThe coefficients are computed dynamically by projecting the query's token length ($L_t$), vocabulary entropy ($H_v$), and tool density requirement ($D_{tool}$) onto the bases: $$c_s = \sqrt{1 - \tanh(\gamma \cdot L_t)}$$ $$c_d = \tanh(\gamma \cdot L_t) \cdot (1 - D_{tool})$$ $$c_x = \tanh(\gamma \cdot L_t) \cdot D_{tool}$$ where $\gamma$ is a scaling constant (default: Normalization ConditionTo satisfy quantum probability laws, the state vector must remain normalized: $$\langle \psi | \psi \rangle = |c_s|^2 + |c_d|^2 + |c_x|^2 = 1$$ 3. Spontaneous State Collapse (Measurement)When a prompt enters the loop, a measurement operator $\hat{M}$ acts on $| \psi \rangle$. This collapses the superposition into a single eigenstate with probability $P_i = |c_i|^2$: A. Simple Domain ($P_s$)
B. Complicated Domain ($P_d$)
C. Complex Domain ($P_x$)
|