Add citation to the card, /docs and llms.txt
#1
by shanto268 - opened
- README.md +33 -0
- squadds_ml_api/api.py +13 -1
README.md
CHANGED
|
@@ -91,3 +91,36 @@ Requests run one at a time, and a repeated request is answered from a cache. Eac
|
|
| 91 |
## Licence
|
| 92 |
|
| 93 |
MIT.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
## Licence
|
| 92 |
|
| 93 |
MIT.
|
| 94 |
+
|
| 95 |
+
## Citation
|
| 96 |
+
|
| 97 |
+
If you use SQuADDS or QCap in your work, please cite:
|
| 98 |
+
|
| 99 |
+
- S. Shanto *et al.*, "SQuADDS: A validated design database and simulation workflow for superconducting qubit design," *Quantum* **8**, 1465 (2024), [doi:10.22331/q-2024-09-09-1465](https://doi.org/10.22331/q-2024-09-09-1465).
|
| 100 |
+
- S. A. Shanto, S. Das and E. Levenson-Falk, "QCap: a physics-corrected graph neural network for the capacitance matrix of any planar superconducting device layout," [arXiv:2611.22057](https://arxiv.org/abs/2611.22057) (2026).
|
| 101 |
+
|
| 102 |
+
```bibtex
|
| 103 |
+
@article{Shanto2024squaddsvalidated,
|
| 104 |
+
doi = {10.22331/q-2024-09-09-1465},
|
| 105 |
+
url = {https://doi.org/10.22331/q-2024-09-09-1465},
|
| 106 |
+
title = {{SQ}u{ADDS}: {A} validated design database and simulation workflow for superconducting qubit design},
|
| 107 |
+
author = {Shanto, Sadman and Kuo, Andre and Miyamoto, Clark and Zhang, Haimeng and Maurya, Vivek and Vlachos, Evangelos and Hecht, Malida and Shum, Chung Wa and Levenson-Falk, Eli},
|
| 108 |
+
journal = {{Quantum}},
|
| 109 |
+
issn = {2521-327X},
|
| 110 |
+
publisher = {{Verein zur F{\"{o}}rderung des Open Access Publizierens in den Quantenwissenschaften}},
|
| 111 |
+
volume = {8},
|
| 112 |
+
pages = {1465},
|
| 113 |
+
month = sep,
|
| 114 |
+
year = {2024}
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
@misc{Shanto2026planarcapacitance,
|
| 118 |
+
title = {{QCap}: a physics-corrected graph neural network for the capacitance matrix of any planar superconducting device layout},
|
| 119 |
+
author = {Shanto, Sadman Ahmed and Das, Saikat and Levenson-Falk, Eli},
|
| 120 |
+
year = {2026},
|
| 121 |
+
eprint = {2611.22057},
|
| 122 |
+
archivePrefix = {arXiv},
|
| 123 |
+
primaryClass = {quant-ph},
|
| 124 |
+
url = {https://arxiv.org/abs/2611.22057}
|
| 125 |
+
}
|
| 126 |
+
```
|
squadds_ml_api/api.py
CHANGED
|
@@ -142,7 +142,10 @@ def create_app(root: Path, registry_file: Path | None = None, load: bool = True)
|
|
| 142 |
title=SERVICE,
|
| 143 |
version="2.0.0",
|
| 144 |
description="HTTP API for the machine-learning models of SQuADDS. Every model is an entry of the registry; "
|
| 145 |
-
"`/v1` is the API, and the original routes `/health`, `/models` and `/predict` are kept unchanged."
|
|
|
|
|
|
|
|
|
|
| 146 |
lifespan=lifespan,
|
| 147 |
)
|
| 148 |
app.state.registry, app.state.cache, app.state.runner = reg, cache, runner
|
|
@@ -327,6 +330,15 @@ def create_app(root: Path, registry_file: Path | None = None, load: bool = True)
|
|
| 327 |
"- SQuADDS documentation: https://lfl-lab.github.io/SQuADDS/",
|
| 328 |
"- Code: https://github.com/LFL-Lab/SQuADDS",
|
| 329 |
"- Python client: squadds.ml.client in the SQuADDS package", ""]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 330 |
return "\n".join(lines)
|
| 331 |
|
| 332 |
@app.get("/v1/health", tags=["v1"])
|
|
|
|
| 142 |
title=SERVICE,
|
| 143 |
version="2.0.0",
|
| 144 |
description="HTTP API for the machine-learning models of SQuADDS. Every model is an entry of the registry; "
|
| 145 |
+
"`/v1` is the API, and the original routes `/health`, `/models` and `/predict` are kept unchanged.\n\n"
|
| 146 |
+
"If you use SQuADDS or QCap in your work, please cite [Shanto et al., Quantum 8, 1465 (2024)]"
|
| 147 |
+
"(https://doi.org/10.22331/q-2024-09-09-1465) and [Shanto, Das and Levenson-Falk, arXiv:2611.22057 (2026)]"
|
| 148 |
+
"(https://arxiv.org/abs/2611.22057).",
|
| 149 |
lifespan=lifespan,
|
| 150 |
)
|
| 151 |
app.state.registry, app.state.cache, app.state.runner = reg, cache, runner
|
|
|
|
| 330 |
"- SQuADDS documentation: https://lfl-lab.github.io/SQuADDS/",
|
| 331 |
"- Code: https://github.com/LFL-Lab/SQuADDS",
|
| 332 |
"- Python client: squadds.ml.client in the SQuADDS package", ""]
|
| 333 |
+
qcap = any("qcap" in m.id for m in reg.models.values() if visible(m, None))
|
| 334 |
+
lines += ["## Cite", "", f"If you use SQuADDS{' or QCap' if qcap else ''} in your work, please cite:", "",
|
| 335 |
+
"- S. Shanto et al., SQuADDS: A validated design database and simulation workflow for superconducting "
|
| 336 |
+
"qubit design, Quantum 8, 1465 (2024), https://doi.org/10.22331/q-2024-09-09-1465"]
|
| 337 |
+
if qcap:
|
| 338 |
+
lines.append("- S. A. Shanto, S. Das and E. Levenson-Falk, QCap: a physics-corrected graph neural network for the "
|
| 339 |
+
"capacitance matrix of any planar superconducting device layout, arXiv:2611.22057 (2026), "
|
| 340 |
+
"https://arxiv.org/abs/2611.22057")
|
| 341 |
+
lines.append("")
|
| 342 |
return "\n".join(lines)
|
| 343 |
|
| 344 |
@app.get("/v1/health", tags=["v1"])
|