Geometric Resonance Engine
GRE — a Python library and research platform for fractal-graph quantum information architecture, built around the Sierpinski triangle as a canonical information geometry. It models quantum walks on fractal graphs, extracts resonance descriptors and attractor signatures from the walk operator spectrum, and maintains a curated corpus of prior experimental data.
Core Research Questions
- Does the Sierpinski graph produce a depth-invariant fixed point at 1/φ ≈ 0.618?
- Can fractal geometry serve as a decoherence-free subspace architecture?
- Which of 7 independent mathematical routes to the Sierpinski triangle converges experimentally?
- How do metallic coin angles (golden, silver, bronze) affect quantum walk spectral dynamics on fractal graphs?
Architecture
gre/
├── core/ Data models: Node, Edge, GraphModel, CircuitModel
├── fractals/ Generators: FractalRegistry, 7 Sierpinski routes
├── simulation/ QuantumWalkSimulator (coined + staggered), entropy metrics
├── quantum/ Circuit mapping: FractalGateLibrary, QuantumWalkCircuitBuilder
├── compiler/ GRC pipeline: GeometryCompiler, ResonanceDescriptorComputer,
│ AttractorSignatureClassifier, ResonanceDescriptor, WalkResult
├── benchmark/ Metallic-triad sweep: metallic_triad.py (48-combination grid)
└── research/ Corpus: HardwareRunRecord, SierpinskiExperimentRecord,
CalibrationSnapshot, provenance chain, query API
The GRC Pipeline
GeometryCompiler.compile() is the main entry point:
from gre.compiler.compiler import GeometryCompiler
compiler = GeometryCompiler()
result = compiler.compile(
"sierpinski",
level=4,
route="ifs",
strategies=["coined"], # "coined" or "staggered"
coin="golden", # hadamard | grover | fourier | golden | silver | bronze
walk_steps=20,
initial_node=0,
)
rd = result.resonance_descriptor # spectral_gap, eigenphase_spacing_ratio, …
att = result.attractor_signature # entropy_trajectory, transfer_class, …
Returns a CompilationResult containing graph structure, symmetry sectors, multiscale partitions, per-strategy walk results, resonance fingerprints, and attractor labels.
Metallic-Angle Triad
Three metallic angles are implemented as single-qubit phase gates registered in FractalGateLibrary:
| Angle | Phase Δ (rad) | Gate | Coin key |
|---|---|---|---|
| Golden | (3−√5)π ≈ 2.400 | GoldenAngleRZGate |
"golden" |
| Silver | π(2−√2) ≈ 1.840 | SilverAngleRZGate |
"silver" |
| Bronze | 2π(1−1/(2+∛3)) ≈ 2.471 | BronzeAngleRZGate |
"bronze" |
Each gate implements to_matrix() = diag(1, e^{iΔ}) and is registered as a Qiskit gate in FractalGateLibrary.GATES.
Benchmark Sweep Results
The 48-combination sweep (3 angles × 4 routes × 2 levels × 2 walk models) produces the following key findings:
What the coin angle does NOT change
- Spectral gap (λ₂ of Laplacian): identical at 0.09801 — purely a graph-topological property
- Participation ratio: identical at 26.64 — dominated by graph structure
- Transfer fidelity: identical per geometry — the underlying graph determines transport properties
What the coin angle DOES change
- Eigenphase spacing ratio s₂/s₃ of the unitary walk operator U = S·(C⊗I):
| Angle | s₂/s₃ (coined walk) | Interpretation |
|---|---|---|
| bronze | 0.488 | Near-Poisson spacing — phase correlations suppressed |
| golden | ≈ 10¹⁰ | Near-degenerate eigenphase pair |
| silver | ≈ 10¹⁰ | Near-degenerate eigenphase pair |
Bronze separates clearly (s₂/s₃ < 1). Golden and silver produce almost identical enormous ratios — their eigenphase degeneracy is a topological artifact of the fractal geometry rather than a coin-specific effect.
Per-geometry transfer fidelity
| Geometry | Model | Transfer fidelity |
|---|---|---|
| hanoi | staggered | 0.050 (best) |
| ifs | staggered | 0.006 |
| pascal_mod2 | staggered | 0.003 |
| rule90 | both | 0 (uniform spread) |
Run the sweep:
python -m gre.benchmark.metallic_triad
Output saved to tests/test_compiler_fixtures_data/metallic_triad_sweep.json and _summary.json.
Research Corpus
The corpus (imports/) contains 48 artifacts across 6 projects:
- IBM Quantum hardware runs on ibm_herron (kingston, fez), ibm_eagle, ibm_falcon, and simulators
- Sierpinski experiments at recursion levels 3–6 across 5 routes (IFS, Pascal, Rule 90, Hanoi, chaos game)
- Calibration snapshots with physical T1/T2 data for ibmq_perth and ibmq_guadalupe
- Phi-encoding circuits (merkaba, tmt projects)
Query the corpus:
from gre.research import load_corpus, query_runs
corpus, catalog, stats = load_corpus()
# Find all ibm_kingston runs
runs = query_runs(backend="ibm_kingston")
for r in runs:
print(f"{r.metadata.experiment_id}: fidelity={r.fidelity}")
# Compare new result against historical runs
from gre.research import compare_to_generated
comparison = compare_to_generated(graph_nodes=33, depth=3, backend="ibmq_qasm_simulator")
See docs/corpus_taxonomy.md for evidence classification (historical_real / synthetic_seed / derived_summary) and validation tier definitions.
Installation
pip install -e .
Requirements: Python 3.10+, Qiskit 1.x, NumPy, SciPy, Pydantic 2.x
Running Tests
pytest tests/ -v
Current: 119 tests passing.
Key Design Decisions
- Continuous-time CTQW via normalized Laplacian exponential — always unitary, no staggering collapse
- Dyadic rational vertex deduplication — scale = 2^level prevents hash collisions
- Metallic angles as registered Qiskit gates — single-step primitives in
FractalGateLibrary, decomposed to RZ at transpile time - Eigenphase spacing ratio s₂/s₃ — the coin-sensitive discriminator; distinguishes bronze from golden/silver despite their similar near-degenerate spectra
- Evidence taxonomy — historical_real vs synthetic_seed vs derived_summary, with validation tiers raw → normalized → benchmarked → measured
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file geometric_resonance_engine-0.1.0.tar.gz.
File metadata
- Download URL: geometric_resonance_engine-0.1.0.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
561f68ccc62531683c66a1d26f05f02b64a04202bbea482391497828b9f27fbc
|
|
| MD5 |
ef6fa3028fa0a5c060c072c7f61d0198
|
|
| BLAKE2b-256 |
1b3ef653d177c3332f8340a3633ca52821c7f63199c273371a20fb4e26f79a56
|
Provenance
The following attestation bundles were made for geometric_resonance_engine-0.1.0.tar.gz:
Publisher:
publish.yml on quantumdynamics927-dotcom/Geometric-Resonance-Engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geometric_resonance_engine-0.1.0.tar.gz -
Subject digest:
561f68ccc62531683c66a1d26f05f02b64a04202bbea482391497828b9f27fbc - Sigstore transparency entry: 2256359182
- Sigstore integration time:
-
Permalink:
quantumdynamics927-dotcom/Geometric-Resonance-Engine@53a3944c816078553d1cc46855f9f65b1e1c8a2e -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/quantumdynamics927-dotcom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@53a3944c816078553d1cc46855f9f65b1e1c8a2e -
Trigger Event:
push
-
Statement type:
File details
Details for the file geometric_resonance_engine-0.1.0-py3-none-any.whl.
File metadata
- Download URL: geometric_resonance_engine-0.1.0-py3-none-any.whl
- Upload date:
- Size: 136.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a4fd686d6e262f7b5133a9d5bc03a006e6b74f29d750fb74bd4ec98abd87ab7
|
|
| MD5 |
7d9b44b94e958f7b18c2528f82bcf1ce
|
|
| BLAKE2b-256 |
93506c8c111f29ca0a416789bf83de7b87e5d33dec2cb5a981adb754ab64e102
|
Provenance
The following attestation bundles were made for geometric_resonance_engine-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on quantumdynamics927-dotcom/Geometric-Resonance-Engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geometric_resonance_engine-0.1.0-py3-none-any.whl -
Subject digest:
9a4fd686d6e262f7b5133a9d5bc03a006e6b74f29d750fb74bd4ec98abd87ab7 - Sigstore transparency entry: 2256359194
- Sigstore integration time:
-
Permalink:
quantumdynamics927-dotcom/Geometric-Resonance-Engine@53a3944c816078553d1cc46855f9f65b1e1c8a2e -
Branch / Tag:
refs/tags/v0.1.6 - Owner: https://github.com/quantumdynamics927-dotcom
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@53a3944c816078553d1cc46855f9f65b1e1c8a2e -
Trigger Event:
push
-
Statement type: