Planar Capacitance Model Space (QCap, QCap-Lite, QCap-Fast) from registry v2 (earlier contents: 906bc45ae05c)
Browse files- app.py +4 -1
- geomgnn/app_flagship.py +2 -2
- geomgnn/static/qcap_badge16_light_32px.png +0 -0
- geomgnn/static/qcap_compact_dark.svg +1 -0
- geomgnn/static/qcap_compact_light.svg +1 -0
- geomgnn/static/qcap_favicon.svg +1 -0
- geomgnn/ui.py +31 -6
- registry.yaml +21 -3
app.py
CHANGED
|
@@ -90,4 +90,7 @@ if os.environ.get("TLSQ_PRELOAD", "1") != "0":
|
|
| 90 |
preload()
|
| 91 |
|
| 92 |
if __name__ == "__main__":
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 90 |
preload()
|
| 91 |
|
| 92 |
if __name__ == "__main__":
|
| 93 |
+
from geomgnn import ui as UI
|
| 94 |
+
|
| 95 |
+
demo.launch(server_name=os.environ.get("GRADIO_SERVER_NAME", "0.0.0.0"), server_port=int(os.environ.get("PORT", 7860)),
|
| 96 |
+
favicon_path=str(UI.FAVICON_PNG))
|
geomgnn/app_flagship.py
CHANGED
|
@@ -528,8 +528,8 @@ def build_app(title: str, examples_dir=None):
|
|
| 528 |
AC.register_examples(ex)
|
| 529 |
usage_stats()
|
| 530 |
label = {"accurate": "QCap (≈1 s, default)", "balanced": "QCap-Lite (≈0.5 s)", "fast": "QCap-Fast (≈0.1 s, trained families only)"}
|
| 531 |
-
with UI.blocks(title, delete_cache=(60, PURGE_AGE_S)) as demo:
|
| 532 |
-
gr.HTML(UI.header(reg["flagship_hub"]["title"], LEDE), container=False, padding=False, elem_classes="tl-flush")
|
| 533 |
with gr.Row():
|
| 534 |
with gr.Column(scale=1):
|
| 535 |
with gr.Row(elem_classes="tl-login"):
|
|
|
|
| 528 |
AC.register_examples(ex)
|
| 529 |
usage_stats()
|
| 530 |
label = {"accurate": "QCap (≈1 s, default)", "balanced": "QCap-Lite (≈0.5 s)", "fast": "QCap-Fast (≈0.1 s, trained families only)"}
|
| 531 |
+
with UI.blocks(title, delete_cache=(60, PURGE_AGE_S), head=UI.favicon_head()) as demo:
|
| 532 |
+
gr.HTML(UI.header(reg["flagship_hub"]["title"], LEDE, product="qcap"), container=False, padding=False, elem_classes="tl-flush")
|
| 533 |
with gr.Row():
|
| 534 |
with gr.Column(scale=1):
|
| 535 |
with gr.Row(elem_classes="tl-login"):
|
geomgnn/static/qcap_badge16_light_32px.png
ADDED
|
geomgnn/static/qcap_compact_dark.svg
ADDED
|
|
geomgnn/static/qcap_compact_light.svg
ADDED
|
|
geomgnn/static/qcap_favicon.svg
ADDED
|
|
geomgnn/ui.py
CHANGED
|
@@ -51,6 +51,10 @@ CSS = """
|
|
| 51 |
.dark #tl-header .tl-logo-dark { display: inline-block; }
|
| 52 |
#tl-header h1 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.9rem; letter-spacing: -0.01em;
|
| 53 |
margin: 0; line-height: 1.15; border-left: 1px solid var(--border-color-primary); padding-left: 14px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
#tl-header p { margin: 0; max-width: 78ch; line-height: 1.55; }
|
| 55 |
#tl-header .tl-meta { font-size: 0.875rem; color: var(--tl-subtle); }
|
| 56 |
#tl-header a { padding: 0; margin: 0; text-underline-offset: 2px; }
|
|
@@ -150,15 +154,36 @@ def blocks(title: str, **kw):
|
|
| 150 |
return gr.Blocks(title=title, theme=theme(), css=CSS, **kw)
|
| 151 |
|
| 152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
def _logo(kind: str) -> str:
|
| 154 |
-
|
| 155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 156 |
|
| 157 |
|
| 158 |
-
def header(title: str, lede: str, meta: str | None = None) -> str:
|
| 159 |
-
"""Logo + title, a short lede (HTML) and an optional small meta line.
|
| 160 |
-
|
| 161 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 162 |
|
| 163 |
|
| 164 |
def footer() -> str:
|
|
|
|
| 51 |
.dark #tl-header .tl-logo-dark { display: inline-block; }
|
| 52 |
#tl-header h1 { font-family: "Source Serif 4", Georgia, serif; font-weight: 600; font-size: 1.9rem; letter-spacing: -0.01em;
|
| 53 |
margin: 0; line-height: 1.15; border-left: 1px solid var(--border-color-primary); padding-left: 14px; }
|
| 54 |
+
#tl-header .tl-marks { gap: 0; }
|
| 55 |
+
#tl-header .tl-marks img.tl-product { height: 34px; margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--border-color-primary);
|
| 56 |
+
box-sizing: content-box; }
|
| 57 |
+
#tl-header h1.tl-title { border-left: none; padding-left: 0; margin-top: 10px; }
|
| 58 |
#tl-header p { margin: 0; max-width: 78ch; line-height: 1.55; }
|
| 59 |
#tl-header .tl-meta { font-size: 0.875rem; color: var(--tl-subtle); }
|
| 60 |
#tl-header a { padding: 0; margin: 0; text-underline-offset: 2px; }
|
|
|
|
| 154 |
return gr.Blocks(title=title, theme=theme(), css=CSS, **kw)
|
| 155 |
|
| 156 |
|
| 157 |
+
def _img(name: str, kind: str, alt: str, cls: str = "") -> str:
|
| 158 |
+
f = STATIC / name
|
| 159 |
+
mime = "image/svg+xml" if f.suffix == ".svg" else "image/png"
|
| 160 |
+
b = base64.b64encode(f.read_bytes()).decode()
|
| 161 |
+
return f"<img class='tl-logo-{kind}{cls}' src='data:{mime};base64,{b}' alt='{alt}'>"
|
| 162 |
+
|
| 163 |
+
|
| 164 |
def _logo(kind: str) -> str:
|
| 165 |
+
return _img(f"squadds_{kind}.png", kind, "SQuADDS")
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
FAVICON_PNG = STATIC / "qcap_badge16_light_32px.png" # /favicon.ico (launch favicon_path): browsers without SVG icons
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
def favicon_head() -> str:
|
| 172 |
+
"""The QCap badge as the page icon: an SVG that follows the browser's light / dark scheme (badge16 light and dark fills)."""
|
| 173 |
+
b = base64.b64encode((STATIC / "qcap_favicon.svg").read_bytes()).decode()
|
| 174 |
+
return f"<link rel='icon' type='image/svg+xml' href='data:image/svg+xml;base64,{b}'>"
|
| 175 |
|
| 176 |
|
| 177 |
+
def header(title: str, lede: str, meta: str | None = None, product: str | None = None) -> str:
|
| 178 |
+
"""Logo + title, a short lede (HTML) and an optional small meta line. product = 'qcap': the QCap lockup beside the SQuADDS
|
| 179 |
+
logo, with the title on its own line below."""
|
| 180 |
+
marks = _logo("light") + _logo("dark")
|
| 181 |
+
if product == "qcap":
|
| 182 |
+
marks += _img("qcap_compact_light.svg", "light", "QCap", " tl-product") + _img("qcap_compact_dark.svg", "dark", "QCap", " tl-product")
|
| 183 |
+
top = f"<div class='tl-brand tl-marks'>{marks}</div><h1 class='tl-title'>{html.escape(title)}</h1>"
|
| 184 |
+
else:
|
| 185 |
+
top = f"<div class='tl-brand'>{marks}<h1>{html.escape(title)}</h1></div>"
|
| 186 |
+
return f"<div id='tl-header'>{top}<p>{lede}</p>" + (f"<p class='tl-meta'>{meta}</p>" if meta else "") + "</div>"
|
| 187 |
|
| 188 |
|
| 189 |
def footer() -> str:
|
registry.yaml
CHANGED
|
@@ -1408,9 +1408,26 @@ flagship_hub:
|
|
| 1408 |
gate: deploy/tests/results/flagship_space_gate_qcap_20261116.json # demo limits 11/11, examples 9/9, crop 8/8, substrate 3/3, ground detection 10/10, flagship 6/6
|
| 1409 |
live: deploy/tests/results/flagship_space_live_qcap_20261116.json # signed in: 12/12, every matrix bitwise = 2026-11-15 live; bake loaded 18; aliases (qcap_fast) work, old names refused
|
| 1410 |
offstack: deploy/tests/results/flagship_space_live_offstack_qcap_20261116.json # 6/6 matrices, routes bitwise = 2026-11-15; warnings equal apart from the names
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1411 |
space: shanto268/PlanarCapacitanceModel # the URL is kept; its earlier v3 tiers are archived (archive below)
|
| 1412 |
title: Planar Capacitance Model
|
| 1413 |
-
private:
|
| 1414 |
space_hardware: cpu-basic # free tier: 2 vCPU, 16 GB RAM
|
| 1415 |
default_arm: accurate
|
| 1416 |
max_conductors: 68 # signal conductors per layout: fewer than 70 with the ground (author 2026-11-14, geomgnn.access.MAX_NETS); the nine-qubit lattice has 66 + ground
|
|
@@ -1549,10 +1566,11 @@ flagship_tiers:
|
|
| 1549 |
squadds_ml_api: # unified SQuADDS ML inference API (handoff/squadds_ml_api/DESIGN.md, source deploy/squadds_ml_api/, build.py)
|
| 1550 |
space: SQuADDS/squadds-ml-inference-api # free cpu-basic (created 2026-04-10, before HF's org paywall; a rebuild stays free, checked 2026-11-14)
|
| 1551 |
deployed: 2026-11-16
|
| 1552 |
-
commit:
|
|
|
|
| 1553 |
deploy_20261115: 8a0986e534f64165d2bbfe849412b05814f2f358 # rollback of the 2026-11-16 deploy; squadds ec4414d (lean/fast prior, bitwise), thread env 2 + torch threads, check_thickness; warm.py uses physics_prior (0dc991fe failed to build on the old name); 56/56 local, 11/11 legacy oracle live, capacitance models 404
|
| 1554 |
previous: a4f1ca1bfd6f0087baa0ab493d3ae04438671321 # 2026-11-14 deploy (a97aa742 + later commits), squadds 04ebd59
|
| 1555 |
rollback: legacy-olivia # tag on 01966faaa06432d425e06895f616db40e6cb858d (Olivia's single-model API); README-only test commit 7c985614
|
| 1556 |
-
models: {transmon_cross_hamiltonian_inverse: public, qcap:
|
| 1557 |
collections: {models: SQuADDS/squadds-models-6af8b7da67a22df62af374c6, datasets: SQuADDS/squadds-datasets-6a65152b857f8efa5620880a}
|
| 1558 |
gating: gated = HF token of a SQuADDS org member; needs Space secret HF_TOKEN (org read token) before the capacitance models go gated
|
|
|
|
| 1408 |
gate: deploy/tests/results/flagship_space_gate_qcap_20261116.json # demo limits 11/11, examples 9/9, crop 8/8, substrate 3/3, ground detection 10/10, flagship 6/6
|
| 1409 |
live: deploy/tests/results/flagship_space_live_qcap_20261116.json # signed in: 12/12, every matrix bitwise = 2026-11-15 live; bake loaded 18; aliases (qcap_fast) work, old names refused
|
| 1410 |
offstack: deploy/tests/results/flagship_space_live_offstack_qcap_20261116.json # 6/6 matrices, routes bitwise = 2026-11-15; warnings equal apart from the names
|
| 1411 |
+
deploy_20261116_launch: # public launch (author "go", 2026-11-16): About drops the private-preview sentence and the private-Space token comment; card title as confirmed by the author ("QCap: ... device layout"); models and outputs unchanged
|
| 1412 |
+
commit: 6a50b4ce6b4ffb3bccbc446ea97d9992923d30de # Docker, cpu-basic, RUNNING 181 s after the upload
|
| 1413 |
+
rollback: {commit: 95e723d1f443ef0c758fbfab213248cbb799d0f0, local_copy: data_local/hf_archive/PlanarCapacitanceModel_95e723d1} # 103 files
|
| 1414 |
+
gate: deploy/tests/results/flagship_space_gate_launch_20261116.json # demo limits 11/11, examples 9/9, crop 8/8, substrate 3/3, ground detection 10/10, flagship 6/6 (B5 stored x86 worst 6.7e-7 / 5.6e-7 / 4.7e-6)
|
| 1415 |
+
live: deploy/tests/results/flagship_space_live_launch_20261116.json # signed in (oauth_token): 12/12, every matrix bitwise = flagship_space_live_qcap_20261116.json; bake loaded 18; vs Mac <= 1.1e-3 rel (8.9e-3 fF)
|
| 1416 |
+
anon: deploy/tests/results/flagship_space_live_launch_anon_20261116.json # no token: 4 examples answer, bitwise = the signed-in record; own upload refused with the sign-in message
|
| 1417 |
+
visibility_20261116: # flipped public with update_repo_settings(private=False), UTC; revision at the flip
|
| 1418 |
+
SQuADDS/QCap: {utc: "2026-11-16T20:56:15Z", sha: e4087468129c641cde12f3ea8b2723998da305eb}
|
| 1419 |
+
SQuADDS/SQuADDS_PlanarCapacitance: {utc: "2026-11-16T20:56:16Z", sha: 7ea40e91b1bc773ce74c2df6595809bd6f501a4d} # then 95a170d7 (MANIFEST.json without the internal repository name)
|
| 1420 |
+
SQuADDS/SQuADDS_PlanarCapacitance-Synthetic: {utc: "2026-11-16T20:56:16Z", sha: 7319bc5d3f6bd9a5b597b1bc9f43c73022c50cb6}
|
| 1421 |
+
shanto268/PlanarCapacitanceModel: {utc: "2026-11-16T20:56:17Z", sha: 6a50b4ce6b4ffb3bccbc446ea97d9992923d30de}
|
| 1422 |
+
SQuADDS/planar-capacitance: {utc: "2026-11-16T20:56:18Z", sha: f905bdf1cc1558b0f13e24646214070bd17ec4ef} # static, opens https://shanto268-planarcapacitancemodel.hf.space top-level
|
| 1423 |
+
still_private: [SQuADDS/PlanarCapacitance-paper, "SQuADDS/2026PaperModels-* (21 repos)", SQuADDS/SQuADDS_PlanarCapacitance-heldout, shanto268/SQuADDS-PlanarCapacitance-core] # checked after the flip (anonymous 401)
|
| 1424 |
+
rollback: "update_repo_settings(repo_id, repo_type=..., private=True) per repo"
|
| 1425 |
+
hf_cards_20261116_launch: # README-only (handoff/hf_cards/): QCap card drops "They go live there when the paper is published ..."; dataset card says the test labels are held out without naming the heldout repo; CHANGELOG / MANIFEST without internal repository names
|
| 1426 |
+
SQuADDS/QCap: e4087468129c641cde12f3ea8b2723998da305eb # parent 3f5dbecd
|
| 1427 |
+
SQuADDS/SQuADDS_PlanarCapacitance: 95a170d7d54ca48cd57dc4c187ab97799a75315c # 7ea40e91 (README + CHANGELOG, parent fb40d01a), then 95a170d7 (MANIFEST.json)
|
| 1428 |
space: shanto268/PlanarCapacitanceModel # the URL is kept; its earlier v3 tiers are archived (archive below)
|
| 1429 |
title: Planar Capacitance Model
|
| 1430 |
+
private: false # public since 2026-11-16 20:56 UTC (author's launch "go"; visibility_20261116)
|
| 1431 |
space_hardware: cpu-basic # free tier: 2 vCPU, 16 GB RAM
|
| 1432 |
default_arm: accurate
|
| 1433 |
max_conductors: 68 # signal conductors per layout: fewer than 70 with the ground (author 2026-11-14, geomgnn.access.MAX_NETS); the nine-qubit lattice has 66 + ground
|
|
|
|
| 1566 |
squadds_ml_api: # unified SQuADDS ML inference API (handoff/squadds_ml_api/DESIGN.md, source deploy/squadds_ml_api/, build.py)
|
| 1567 |
space: SQuADDS/squadds-ml-inference-api # free cpu-basic (created 2026-04-10, before HF's org paywall; a rebuild stays free, checked 2026-11-14)
|
| 1568 |
deployed: 2026-11-16
|
| 1569 |
+
commit: 21f3f577d3385a721d2f5d02d706d17a86851bc3 # public launch (author "go" 2026-11-16): qcap / qcap-fast visibility public, card QCap section; squadds 25c5392 (squadds/ml = 0b3a12f); 59/59 local (tests adapted: hidden / gated checks on forced registries, public checks on the released one), --check resolves; live anonymous: /v1/health ok (squadds_commit 25c5392), legacy oracle 11/11, /v1/models lists qcap + qcap-fast, interdigital multipart predict qcap bitwise = examples/qcap.json, qcap-fast max 1.3e-5 fF (3.0e-6 rel, MAE 5.8e-6 / RMSE 8.6e-6 fF; example generated on arm64) (deploy/tests/results/squadds_ml_api_live_launch_20261116.json)
|
| 1570 |
+
deploy_20261116: 8427cff1c825f4bd8e9350fb7934cb12511c0d68 # rollback of the launch deploy; squadds 7879eba (QCap rename): ids qcap / qcap-fast (hidden, 404 until launch), examples regenerated (matrices bitwise, revision 25bdbb19); 56/56 local, legacy oracle 11/11 live (deploy/tests/results/squadds_ml_api_live_qcap_20261116.json)
|
| 1571 |
deploy_20261115: 8a0986e534f64165d2bbfe849412b05814f2f358 # rollback of the 2026-11-16 deploy; squadds ec4414d (lean/fast prior, bitwise), thread env 2 + torch threads, check_thickness; warm.py uses physics_prior (0dc991fe failed to build on the old name); 56/56 local, 11/11 legacy oracle live, capacitance models 404
|
| 1572 |
previous: a4f1ca1bfd6f0087baa0ab493d3ae04438671321 # 2026-11-14 deploy (a97aa742 + later commits), squadds 04ebd59
|
| 1573 |
rollback: legacy-olivia # tag on 01966faaa06432d425e06895f616db40e6cb858d (Olivia's single-model API); README-only test commit 7c985614
|
| 1574 |
+
models: {transmon_cross_hamiltonian_inverse: public, qcap: public, qcap-fast: public} # ids renamed 2026-11-16 (were planar_capacitance_flagship / _fast); qcap / qcap-fast public since the launch deploy 21f3f577
|
| 1575 |
collections: {models: SQuADDS/squadds-models-6af8b7da67a22df62af374c6, datasets: SQuADDS/squadds-datasets-6a65152b857f8efa5620880a}
|
| 1576 |
gating: gated = HF token of a SQuADDS org member; needs Space secret HF_TOKEN (org read token) before the capacitance models go gated
|