Spaces:
Sleeping
Sleeping
Deminiko
commited on
Commit
·
a35a800
1
Parent(s):
09ef755
- README.md +1 -0
- frontend/ui/ui_handlers.py +6 -1
README.md
CHANGED
|
@@ -13,6 +13,7 @@ tags:
|
|
| 13 |
- building-mcp-track-enterprise
|
| 14 |
- building-mcp-track-consumer
|
| 15 |
- building-mcp-track-creative
|
|
|
|
| 16 |
---
|
| 17 |
VIDEO: https://youtu.be/E1Ailx1X1YE
|
| 18 |
SOCIAL: https://www.linkedin.com/posts/nicolas-larenas_quantumarchitect-mcp-a-hugging-face-space-activity-7401024993893044225-RF-R?utm_source=share&utm_medium=member_desktop&rcm=ACoAADmu0wIBjvA0DVdHvqncNUVTEW72gbiGUps
|
|
|
|
| 13 |
- building-mcp-track-enterprise
|
| 14 |
- building-mcp-track-consumer
|
| 15 |
- building-mcp-track-creative
|
| 16 |
+
- Google-Gemini-API
|
| 17 |
---
|
| 18 |
VIDEO: https://youtu.be/E1Ailx1X1YE
|
| 19 |
SOCIAL: https://www.linkedin.com/posts/nicolas-larenas_quantumarchitect-mcp-a-hugging-face-space-activity-7401024993893044225-RF-R?utm_source=share&utm_medium=member_desktop&rcm=ACoAADmu0wIBjvA0DVdHvqncNUVTEW72gbiGUps
|
frontend/ui/ui_handlers.py
CHANGED
|
@@ -127,7 +127,12 @@ def ui_score_circuit(qasm: str, hardware: str) -> str:
|
|
| 127 |
|
| 128 |
fidelity = result.get("estimated_fidelity")
|
| 129 |
if fidelity:
|
| 130 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
return "\n".join(lines)
|
| 133 |
else:
|
|
|
|
| 127 |
|
| 128 |
fidelity = result.get("estimated_fidelity")
|
| 129 |
if fidelity:
|
| 130 |
+
# fidelity can be a dict with 'fidelity' key or a float
|
| 131 |
+
if isinstance(fidelity, dict):
|
| 132 |
+
fidelity_val = fidelity.get("fidelity", 0.0)
|
| 133 |
+
else:
|
| 134 |
+
fidelity_val = fidelity
|
| 135 |
+
lines.append(f"\n**Estimated Fidelity:** {fidelity_val:.4f}")
|
| 136 |
|
| 137 |
return "\n".join(lines)
|
| 138 |
else:
|