Skip to main content

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

Metadata

Release files for geometric-resonance-engine 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geometric-resonance-engine 0.1.0
File Size Uploaded Provenance Actions
geometric_resonance_engine-0.1.0.tar.gz 1.7 MB With provenance Details for geometric_resonance_engine-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geometric-resonance-engine 0.1.0
File Interpreter ABI Platform Actions
geometric_resonance_engine-0.1.0-py3-none-any.whl Python 3 none any Details for geometric_resonance_engine-0.1.0-py3-none-any.whl

Total release size: 1.9 MB

Release files / geometric_resonance_engine-0.1.0.tar.gz

Download URL geometric_resonance_engine-0.1.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
561f68ccc62531683c66a1d26f05f02b64a04202bbea482391497828b9f27fbc
BLAKE2b-256 checksum
How to use checksums
1b3ef653d177c3332f8340a3633ca52821c7f63199c273371a20fb4e26f79a56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

Release files / geometric_resonance_engine-0.1.0-py3-none-any.whl

Download URL geometric_resonance_engine-0.1.0-py3-none-any.whl
Size 136.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a4fd686d6e262f7b5133a9d5bc03a006e6b74f29d750fb74bd4ec98abd87ab7
BLAKE2b-256 checksum
How to use checksums
93506c8c111f29ca0a416789bf83de7b87e5d33dec2cb5a981adb754ab64e102
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

Security for geometric-resonance-engine 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for geometric_resonance_engine-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page