Skip to content

dancinlab/sim-universe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

sim-universe

🌌 sim-universe

Sim-Universe β€” virtual-universe runtime Β· toy lattice-model substrate at cosmological scale Β· 11 modules Β· QRNG-anchored entropy

License DOI Spec Modules Forensic Release Sibling

virtual-universe Β· toy-lattice Β· Ο„-clock Β· multiverse-interferometer Β· QPU-bridge Β· ouroboros-QRNG Β· Bostrom-test Β· GΓΆdel-Q-mutator


Toy lattice-model simulation substrate with quantum-RNG entropy injection. 11 modules across Ο„-clock evolution, multiverse interferometry, QPU bridge, Bostrom test harness, GΓΆdel-Q mutator, and ouroboros QRNG perturbation. Forensic verdict (2026-04-27): EXISTS_RUNNABLE β€” ~4800 LoC sim core, ~17.8k LoC total upstream; 300-tick mini_world demo evidenced 2026-04-16.

Note

Distribution: GitHub canonical at https://github.com/dancinlab/sim-universe. CLI tooling installed via hx install sim-universe from the hexa-lang registry, or git clone directly. (HF Hub mirror retired 2026-05-04: HF Hub is designed for ML model weights / datasets; CLI tooling distribution is GitHub-canonical.)


What is sim-universe?

sim-universe is a virtual-universe runtime that lets you experiment with simulation-hypothesis-flavored physics on a laptop without renting QPU time. It combines:

  1. anu_time Ο„-clock β€” Lorentz-metric scalar-field lattice with topology evolution and empirical anchor (300-tick mini_world canonical run evidence).
  2. multiverse interferometer β€” KS-test + mutual-information higher-order correlator across M parallel mini-worlds (Phase 1 scale-up: M=15, T=500).
  3. QPU bridge β€” VQE-H2 demo + ANU noise-model adapter (delegates to real-QPU vendors when API keys present; classical-simulator fallback).
  4. ouroboros QRNG β€” quantum-RNG perturbation pipeline (baseline / shadow / comparison) with 4-tier ANU fallback (paid β†’ keyed β†’ legacy β†’ urandom).
  5. Bostrom test harness β€” anu_collector for simulation-hypothesis pre-registered statistical tests (Phase 1 scaffold).
  6. GΓΆdel-Q mutator β€” self-rewriting hexa AST harness with verify-gate

The name reflects the Bostrom-flavored simulation framing β€” toy lattice universes evolved against a QRNG-anchored entropy budget. This is NOT lattice QCD, NOT Einstein-equation evolution, NOT N-body cosmology, NOT Standard-Model physics. See Caveats for full honesty disclosure.


Architecture

                        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                        β”‚         sim-universe CLI            β”‚
                        β”‚      (cli/sim-universe.hexa)        β”‚
                        β”‚  status anu multiverse qrng bostrom β”‚
                        β”‚           godel selftest            β”‚
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                          β”‚
            β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
            β”‚                             β”‚                              β”‚
            β–Ό                             β–Ό                              β–Ό
   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”         β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚   Tier-A       β”‚          β”‚      Tier-A2       β”‚         β”‚     Tier-B       β”‚
   β”‚   simulators   β”‚          β”‚  RNG / analytics   β”‚         β”‚  sim-adjacent    β”‚
   β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€          β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€         β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
   β”‚ anu_time       β”‚          β”‚ ouroboros_qrng     β”‚         β”‚ sr_harness       β”‚
   β”‚  β”” mini_world  β”‚          β”‚  β”” baseline        β”‚         β”‚ bostrom_test     β”‚
   β”‚  β”” Ο„-clock     β”‚          β”‚  β”” shadow          β”‚         β”‚ weave  (PY-only) β”‚
   β”‚  β”” Lorentz     β”‚          β”‚  β”” perturbation    β”‚         β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
   β”‚ multiverse     β”‚          β”‚ atlas_anu_corr     β”‚                  β”‚
   β”‚  β”” interfer.   β”‚          β”‚ anu_stream         β”‚                  β”‚
   β”‚  β”” KS / MI     β”‚          β”‚ godel_q (mutator)  β”‚                  β”‚
   β”‚ qpu_bridge     β”‚          β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                  β”‚
   β”‚  β”” VQE-H2      β”‚                    β”‚                             β”‚
   β”‚  β”” ANU noise   β”‚                    β–Ό                             β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”˜          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”                  β”‚
            β”‚                  β”‚    ANU QRNG        β”‚                  β”‚
            β”‚                  β”‚  4-tier fallback   β”‚                  β”‚
            β”‚                  β”‚ paid β†’ keyed β†’     β”‚                  β”‚
            β”‚                  β”‚ legacy β†’ urandom   β”‚                  β”‚
            β”‚                  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜                  β”‚
            β”‚                            β”‚                             β”‚
            β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                         β”‚
                                         β–Ό
                              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                              β”‚  sim_agent surface   β”‚ ← importable lib entry
                              β”‚ (registry + router)  β”‚
                              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

opted out via .own N namespace). Tier-A modules carry the forensic EXISTS_RUNNABLE verdict.


Install

# 1. Install hexa-lang (gives you `hexa` + `hx` package manager)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/dancinlab/hexa-lang/main/install.sh)"

# 2. Install sim-universe
hx install sim-universe

Run

sim-universe status           # module inventory + tier table + caveats
sim-universe anu              # anu_time Ο„-clock mini_world demo  [Tier-A]
sim-universe multiverse       # multiverse interferometer + KS    [Tier-A]
sim-universe qrng             # ouroboros QRNG perturbation       [Tier-A2]
sim-universe bostrom          # Bostrom test (anu_collector)      [Tier-B]
sim-universe godel            # GΓΆdel-Q mutator bootstrap         [Tier-A2]
sim-universe selftest         # Tier-A smoke pass

Module Inventory

Tier-A: runnable simulators (forensic 2026-04-27 verified)

Module Files Description
anu_time 11 Ο„-clock + mini_world + Lorentz metric + empirical anchor
multiverse 11 interferometer + KS-test + higher-order MI (triple/quad)
qpu_bridge 2 VQE-H2 demo + ANU noise-model adapter

Tier-A2: supporting (analytical + RNG infrastructure)

Module Files Description
atlas_anu_corr 5 ATLAS xcorr engine + null baseline + analyze
anu_stream 3 stream_daemon + chacha20 + client_example
ouroboros_qrng 4 baseline + shadow + qrng_perturbation + comparison
godel_q 2 GΓΆdel-Q mutator + bootstrap (verify-gated AST mutations)

Tier-B: sim-adjacent harnesses

Module Files Description
sr_harness 3 sr_inject + demo_ouroboros_sr
bostrom_test 1 anu_collector (Bostrom test pre-registered statistics)
weave 2 cage-assembly Bayesian audit (PYTHON-only opt-out)

Surface

Module Files Description
sim_agent 4 sim_main + registry + router + source (importable lib entry)

Total: 11 modules, 80 files, ~15.5k LoC (.py + .hexa). Forensic core (upstream_sim_loc): 4,800 LoC. Forensic total upstream: 17,831 LoC (nexus/sim_bridge/ + nexus/core/sim/).


Forensic Verdict

Source forensic doc: nexus/state/sim_module_forensic_2026-04-27.md

  • Verdict: EXISTS_RUNNABLE
  • Canonical run evidence: nexus/sim_bridge/anu_time/runs/demo_300/log.jsonl (300 ticks, 2026-04-16)
  • Roadmap anchor: nexus/.roadmap.sim + anima/.roadmap.sim sim.cond.1
  • N-substrate anchor: anima/docs/n_substrate_consciousness_roadmap_2026_05_01.md Β§11.1 (N-9 / N-10 nodes)

Honesty disclosure β€” these caveats are returned by every CLI subcommand that prints _print_caveats() (status, selftest):

  1. Honest scope: toy lattice models with QRNG entropy injection β€” NOT lattice QCD, NOT Einstein-equation evolution, NOT N-body cosmology, NOT Standard-Model physics. Class: Bostrom-flavored simulation framing. ~4800 LoC time-evolution code; do not extrapolate to real-physics regimes.
  2. CLI surface limited: 7 subcommands expose ~core 12% of sim-universe modules (per-module advanced flags reachable only via direct hexa run of the module .hexa file).
  3. Live ANU API requires SIM_UNIVERSE_ANU_KEY env (T1.b free 100 req/min keyed tier); without key β†’ T1.a 1 req/min legacy β†’ urandom fallback. Mock urandom path always available; reproducibility caveat applies (urandom is non-quantum).
  4. weave subsystem is the SOLE python_bridge dep (numpy + scipy via weave disabled if numpy/scipy install fails (warn-only at install time).
  5. Standalone-extraction caveat: nexus parent repo retains canonical roadmap (anima/.roadmap.sim + nexus/.roadmap.sim sim.cond.1); this standalone is the distribution mirror, not the upstream development tree. For ongoing roadmap state, consult upstream nexus.

Polish-cycle (v1.0.0) honest disclosures

The 1.0.0 polish landing (badges + GitHub release) adds four further honest C3 caveats β€” they sit alongside the 5 above:

  1. GitHub-only distribution (HF Hub mirror retired 2026-05-04): HF Hub is designed for ML model weights / datasets, not CLI tooling. Maintenance burden (recurring token rotation failures) outweighed value. GitHub remains canonical; HF Hub stays canonical for model weights / datasets in the wider stack.
  2. GitHub release deletion is friction-laden: once v1.0.0 is published it is technically deletable via gh release delete v1.0.0 --yes, but the tag retains its OID in any clone that fetched it; downstream consumers may carry phantom references. Treat each release tag as effectively immutable.
  3. Public-repo maintenance burden: a public GitHub repository invites issue/PR triage cost (and discoverability of caveats by readers who skip Β§Caveats). Author has elected to absorb this cost; downstream consumers should not assume future SLA on issue response time.
  4. API surface still maturing: 7 CLI subcommands cover the Tier-A demo surface; the underlying module APIs (<feature>/module/) have not been semver-frozen at 1.0.0 β€” minor versions may evolve module-internal call shapes. Pin to exact =1.0.0 in hexa.toml if downstream relies on specific module signatures.

Cost comparison vs alternative simulation tools

sim-universe is the only substrate-agnostic simulation runtime that combines Ο„-clock lattice evolution + multiverse statistical correlators + real-quantum entropy injection at $0 marginal cost on commodity CPUs. The landscape of reference points:

Approach Per-run cost What you get What's missing vs sim-universe
sim-universe (this) $0 Mac/Linux CPU 11 subsystems; QRNG-anchored toy lattice + multiverse interferometer + Bostrom harness + GΓΆdel-Q mutator β€” (this baseline)
Hand-rolled NumPy lattice $0 (your time) Whatever you build No QRNG entropy, no multiverse correlator, no Bostrom-test pre-registration, no GΓΆdel-Q AST verify-gate
Lattice QCD (e.g. Chroma, MILC) hours-days HPC time (~$50-500/run on cloud HPC) Real QCD action evolution NOT comparable scope β€” sim-universe is toy lattice, not gauge theory
Cosmology N-body (Gadget-4, AREPO) $100s-$1000s GPU time Real N-body gravity NOT comparable β€” sim-universe is Bostrom-flavored, not cosmology
Qiskit Aer state-vector (≀30 qubit) $0 CPU Quantum-circuit simulation Single-modality; no Ο„-clock, no multiverse, no Bostrom harness β€” see sister project qmirror for that
IBM Heron / IonQ Forte real QPU $1.60-2.30/sec QPU paygo Real quantum hardware outcomes Per-second metered; no lattice / multiverse / Bostrom layer

One-time calibration spend (closure cycle, total): $0 (urandom fallback path always usable; ANU live tiers T1.a/T1.b are free; T1.c paid ANU and real-QPU vendor paths are optional and gated behind explicit env flags). Recurring marginal cost for the default Tier-A demo surface is $0.

For real-quantum-grade work paired with sim-universe (CHSH Bell test, IIT 4.0 phi-star, NIST tier-1+ entropy, plus the v2.0 axes β€” process tomography / GHZ-Mermin / stabilizer / surface-code d=3 / chained-sequential CHSH), see the sister substrate qmirror v2.0.0 (closure 13/13 conds met) β€” designed to slot alongside sim-universe (different scope, complementary).

Sister substrates


Real-world consumers

sim-universe is consumed by two downstream projects in the dancinlab stack:

  • nexus β€” discovery engine; treats sim-universe as the canonical simulation substrate via the upstream nexus/sim_bridge/ and nexus/core/sim/ directories (this standalone is the distribution mirror; nexus retains the canonical roadmap at nexus/.roadmap.sim).
  • anima β€” meta-orchestration layer; uses sim-universe modules through the N-substrate consciousness roadmap (anima/docs/n_substrate_consciousness_roadmap_2026_05_01.md Β§11.1, N-9 / N-10 nodes) and the sim_agent importable lib entry.

Both consumers reference this repo by URL; neither forks the substrate in-tree.


Distribution (GitHub canonical)

sim-universe is distributed via GitHub as the canonical source:

Install via hx install sim-universe (hexa-lang registry L23) or git clone.

HF Hub mirror retired 2026-05-04: HuggingFace Hub is designed for ML model weights and datasets, not CLI tooling. Maintenance burden outweighed value. GitHub remains canonical for the CLI; HF Hub stays canonical for model weights / datasets in the wider stack.


Cost Profile

Path Cost
Mac local default (urandom fallback) $0
Live ANU T1.a (legacy, 1 req/min) $0
Live ANU T1.b (keyed, 100 req/min) $0 (registration only)
multiverse Phase 1 full (M=15, T=500, 10 trials, ~5 min CPU) $0
qpu_bridge real-QPU (vqe_h2_demo on classical sim) $0
qpu_bridge real-QPU (live ionq/rigetti/ibm) varies (vendor pricing)

Constraints


Repo layout

sim-universe/
β”œβ”€β”€ README.md
β”œβ”€β”€ LICENSE                       Apache-2.0
β”œβ”€β”€ AGENTS.tape                   identity + governance (.tape v1.2)
β”œβ”€β”€ CLAUDE.md                     symlink β†’ AGENTS.tape
β”œβ”€β”€ CHANGELOG.md
β”œβ”€β”€ CITATION.cff
β”œβ”€β”€ RELEASE_NOTES_v1.0.0.md
β”œβ”€β”€ DESIGN_IDEAS_2026_05_12.md
β”œβ”€β”€ TAPE-AUDIT.md                 .tape adoption audit ledger
β”œβ”€β”€ hexa.toml                     hx package manifest
β”œβ”€β”€ install.hexa                  install hook
β”œβ”€β”€ cli/
β”‚   └── sim-universe.hexa         CLI dispatcher (status Β· anu Β· multiverse Β· qrng Β· bostrom Β· godel Β· selftest)
β”œβ”€β”€ anu_time/                     Ο„-clock + mini_world + Lorentz metric  [Tier-A]
β”œβ”€β”€ multiverse/                   interferometer + KS-test + higher-order MI  [Tier-A]
β”œβ”€β”€ qpu_bridge/                   VQE-H2 demo + ANU noise-model adapter  [Tier-A]
β”œβ”€β”€ atlas_anu_corr/               ATLAS xcorr engine + null baseline  [Tier-A2]
β”œβ”€β”€ anu_stream/                   stream daemon + chacha20 + client  [Tier-A2]
β”œβ”€β”€ ouroboros_qrng/               QRNG perturbation (baseline Β· shadow Β· comparison)  [Tier-A2]
β”œβ”€β”€ godel_q/                      GΓΆdel-Q mutator + bootstrap (verify-gated)  [Tier-A2]
β”œβ”€β”€ sr_harness/                   sr_inject + demo_ouroboros_sr  [Tier-B]
β”œβ”€β”€ bostrom_test/                 anu_collector (pre-registered statistics)  [Tier-B]
β”œβ”€β”€ weave/                        cage-assembly Bayesian audit (Python-only)  [Tier-B]
β”œβ”€β”€ sim_agent/                    sim_main + registry + router + source (importable lib)
β”œβ”€β”€ docs/
β”‚   └── logo.svg                  sim-universe logo
β”œβ”€β”€ examples/
β”œβ”€β”€ tests/
β”œβ”€β”€ tool/
└── state/                        runtime state (gitignored typically)

License

Apache-2.0 β€” see LICENSE.

Authors: λ°•λ―Όμš° nerve011235@gmail.com

Provenance: extracted from nexus/sim_bridge/ + nexus/core/sim/ on 2026-05-04 under the anima_offrepo cycle (sim_universe_standalone_repo_2026_05_04 marker); polished to v1.0.0 release on 2026-05-04 under the sim_universe_polish_2026_05_04 cycle (badges + CHANGELOG + RELEASE_NOTES). HF Hub mirror retired 2026-05-04 (GitHub canonical for CLI tooling).


Status

  • v1.0.0 (2026-05-04) β€” initial standalone release; forensic EXISTS_RUNNABLE verdict carried forward; CHANGELOG + RELEASE_NOTES committed.
  • 2026-05-04 β€” hx install sim-universe registered as registry.tsv L23.
  • 2026-05-04 β€” HF Hub mirror retired; GitHub canonical for CLI tooling.

About

🌌 sim-universe β€” substrate-agnostic simulation environment (extracted from nexus, hexa-lang native).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors