A real fruit-fly connectome. An optional 4-qubit scoring path. One brutally ordinary portfolio control.
THE FIGHT: connectome signal vs. no-graph control. THE VERDICT: bounded historical gate passed; forward edge still unproven.
FRUIT-FLY CONNECTOME → 4-QUBIT SCORE → PORTFOLIO SIGNAL
⚔
NO-GRAPH CONTROL
Weird brain. Boring controls. No magical returns.
Run the experiment · See the evidence · 简体中文
This is a reproducible attempt to find out whether biological network structure leaves any useful signal after causal splits, transaction costs, perturbations, and simpler controls have tried to kill it.
Important
Research prototype only. No live trading, investment advice, profitability claim, biological-fidelity claim, or quantum-advantage claim.
The current evidence snapshot records 45+ local tests, 4,096 selected MaleCNS segments, and 160,053 retained sparse edges. A preregistered historical comparison passed its bounded research gate, but that result is not forward performance or investment evidence. See the criterion-level verification record for commands, denominators, limitations, and separate GO/NO-GO decisions.
This synthetic demo needs no external research data:
python -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install -e .
python -m scripts.demoIt prints the same four-value input through a tiny sparse recurrent fixture and a no-graph control. The output is a code-path demonstration, not MaleCNS or market evidence.
Most portfolio models begin with a familiar architecture and optimize performance. Quantum Fly begins with robustness and falsifiability.
It uses the fruit fly connectome as a sparse structural prior, then asks whether that structure adds anything beyond simpler alternatives. Every interesting result must compete with classical baselines, no-graph variants, randomized topology, matched-degree controls, multiple seeds, causal time splits, and transaction costs.
The phrase quantum stability is a project hypothesis, not an established scientific capability. Here it means the measured sensitivity of a portfolio decision to market perturbations, model-parameter noise, and sampling variation under a declared evaluation protocol.
The repository contains a reproducible Python research skeleton that runs offline after its inputs are prepared, with:
- bounded MaleCNS connectome scans and subgraph experiments
- finite market-feature encoding and sparse recurrent graph state
- transparent classical baselines and a no-graph ablation
- causal historical evaluation and walk-forward tooling
- an optional 4-qubit PennyLane scoring path
- single-Fly, three-member, and coordinator structure comparisons
- persistent, typed local Fly messages and research receipts
- request-correlated LeanRouter smoke probes with explicit failure reporting
The default fixtures are synthetic. The current real-data path uses a bounded subset of the official MaleCNS release plus cached FRED 2024 S&P 500 index inputs. A successful run is evidence for that bounded experiment only.
Requirements: Python 3.10 or newer and roughly 1.1 GB for the three bounded MaleCNS input tables. The optional PennyLane path requires Python 3.11 or newer. The first preparation step downloads official data; the first research run also downloads its declared FRED market input. Later validated runs can operate from those caches.
python -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install -e ".[test,quantum]"
python -m scripts.prepare_malecns --download
python -m scripts.quickstart --check
python -m scripts.quickstart
python -m pytest -qRead data preparation before downloading. The run writes a machine-readable receipt to outputs/local-research-run.json. Generated receipts are intentionally ignored by Git, so copy the exact receipt somewhere durable when sharing a result. If PennyLane is not installed, the receipt marks quantum outputs unavailable and still records the classical and connectome results.
Other useful entry points:
# Ask the local receipt-backed research interface what evidence is missing
python -m scripts.fly_chat "What is the current assessment, and what evidence is missing?"
# Compare single Fly, three-member mean, coordinator state, and no-graph controls
python -m scripts.run_structure_comparison --max-nodes 4096 --max-source-edges 10000000 --seeds 0 1 2
# Run the bounded multi-Fly message and state loop with explicit inputs
python -m scripts.run_fly_loop `
--features 0.1 -0.2 0.3 -0.05 `
--as-of 2024-01-02T00:00:00Zmarket features
|
v
connectome-inspired sparse state ----> classical controls
| |
v |
optional quantum scoring |
| |
+--------------> portfolio signal <----+
|
v
causal offline evaluation
plus costs and perturbations
The exact coupling between connectome structure and quantum simulation is a research question. It is not assumed to be useful in advance.
A useful fork changes one thing and preserves the controls. Good starting experiments include:
- Replace the connectome topology with a degree-matched random graph.
- Swap the quantum scorer for a parameter-matched classical model.
- Test fewer Fly modules against the three-member coordinator.
- Add another causal market feature without changing the evaluation window.
- Reproduce a negative result on different hardware or a different seed set.
Start with a degree-matched random graph or no-graph control. Include the command, configuration, random seeds, data provenance, runtime, resource use, and failed runs, then open a research-result issue or propose a small pull request. The best contribution may be the experiment that proves an exciting idea does not work. See CONTRIBUTING.md.
The project software is available under the MIT License. Before redistributing research results or data, also review the open collaboration boundary; the MaleCNS data retains its separate CC BY attribution requirements.
- Anatomical connections are not executable neural dynamics. State, weights, updates, inputs, objectives, and readout must be specified separately.
- Backtests must use time-correct splits and report costs, leakage checks, seeds, and failures.
- A local test, smoke call, or research receipt is not proof of operational reliability.
- No result should be presented as investment advice or evidence of stable profitability.
- Simulated quantum components do not establish quantum speedup or advantage.
- GOAL.md: verified capability, open gaps, acceptance conditions, and hard boundaries
- Hypotheses: claims designed to be tested and rejected
- Experiment plan: baselines, ablations, and evaluation protocol
- Architecture: multi-Fly and coordinator design
- Agent protocol: bounded communication between components
- Data receipt: MaleCNS source, schema, checksums, and scale
- Research boundary: what the evidence does and does not establish
- Open collaboration: public research and private-work boundaries
- Marketing and launch review: audience, proof funnel, launch experiments, and measurement rules
The project uses the official Janelia MaleCNS v1.0 download. The upstream page identifies the data as CC BY. Raw data stays under the gitignored data/malecns-v1.0/raw/ directory. See DATA_RECEIPT.md for expected files and validation details.
Quantum Fly is early, strange, and deliberately testable. Fork the question, not the conclusion.
