HUB
Sign inSign up
timecrystal-q logo

credkellar/timecrystal-q

By credkellar

•Updated 17 days ago

TimeCrystal-Q: a discrete time crystal lab - Floquet spin chain, period doubling, pi-paired spectra!

Image
Machine learning & AI
Developer tools
Data science
1

188

credkellar/timecrystal-q repository overview

⁠TimeCrystal-Q ⏳💎

Discrete Time Crystal Physics Lab — by Darion Kellar

Educational discrete time crystal lab in ONE pure-Python file: an exactly simulated Floquet spin chain (≤ 10 qubits, statevector) that answers its periodic drive at twice the drive period — period doubling with a subharmonic order parameter, an imperfect-π-pulse rigidity plateau, the load-bearing role of interactions, a (ε, J) phase diagram labelled by real runs, an exact 2-qubit Floquet spectrum with π-paired quasienergies, and an honest side-by-side with the 2021 Google Sycamore experiment.

Pure Python standard library. Zero dependencies. Zero network. Honest scope: this is an exact, noiseless simulation of the mechanism — NOT a replication of the experiment, never presented as measured data — and every real-hardware / live-operation action is a permanent HOLD gate (14 total).

⁠🐳 Quick start

docker pull credkellar/timecrystal-q:latest docker run --rm credkellar/timecrystal-q:latest

The default command runs the full demo plus the built-in self-checks (CHECKS 41/41).

Run a specific command instead:

docker run --rm credkellar/timecrystal-q:latest python3 main.py checks # CHECKS 41/41 docker run --rm credkellar/timecrystal-q:latest python3 main.py evolve # one DTC run, diagnostics JSON docker run --rm credkellar/timecrystal-q:latest python3 main.py plateau # rigidity plateau scan docker run --rm credkellar/timecrystal-q:latest python3 main.py phase # (epsilon, J) phase diagram docker run --rm credkellar/timecrystal-q:latest python3 main.py spectrum # quasienergies + pi-pairing docker run --rm credkellar/timecrystal-q:latest python3 main.py holds # 14 HOLD gates

⁠🔬 What's inside

  • Floquet drive — U_F = U3·U2·U1: π-pulse flip (angle π·g, error ε = 1 − g), disordered Ising phases around J = π/4, random on-site fields in [−π, π]. The kicked-Ising model of the Sycamore experiment, evolved exactly.
  • Period doubling — from all-spins-up at ε = 0 the magnetisation answers −1, +1, −1, +1 …: subharmonic amplitude exactly 1.0, Fourier power share at half frequency > 0.99.
  • Rigidity plateau — with interactions + disorder, A ≥ 0.5 holds out to ε ≈ 0.125; with J = 0 it collapses by ε ≈ 0.025 (A at ε = 0.10: 0.7051 with interactions vs 0.1582 without). The clean chain (W = 0) also answers at n = 8 — labelled honestly as a prethermal finite-size effect, not the thermodynamic phase.
  • Phase diagram — (ε, J) sweep at W = π, every cell an actual run: 15 DTC / 2 thermal / 7 trivial on the
Tag summary
Recent tags
Content type
Image
Digest
sha256:5bc8f60fa…
Size
45.2 MB
Last updated
17 days ago
docker pull credkellar/timecrystal-q:latest