Add sample diagram preview, upload hints, and block taglines
Yuchen Yuan
bd3a155
Sample circuit preview:
- Backend SampleCircuit now carries depth/size/params/diagram_text so the
sample list exposes enough metadata to preview without a second round trip.
- Each sample button has an eye-toggle that expands an ASCII circuit
diagram inline. The Loaded card has a matching toggle.
Upload affordance:
- Button label is now 'upload .qpy / .qasm' with a descriptive title.
- Empty Loaded card explains what formats are accepted and offers a
'download a sample' link so new users can try the upload flow with a
known-good file.
- New GET /api/circuits/samples/{key}/download serves the raw .qpy.
Block discoverability:
- Added NodeSpec.tagline (3-5 word human-friendly caption).
- Palette tiles show the tagline under the label (tile height grew from
52px to 68px, width 92px -> 108px).
- Canvas QNode also renders the tagline so users don't need the tooltip
or the tour to recall what each block does.
- NodePalette: widen tiles 72px->92px so CompressVQC / IBM live backend
labels stop truncating; rewrite right-side hint into clean two-liner.
- Backend: add SAMPLE_ORDER so /api/circuits/samples returns a
pedagogical ordering (bell_state first, ry_chain_6q last) instead of
alphabetical by filename.
- Rename 'Circuit' -> 'Input circuit' for consistent naming across
palette, tour, and results.
- Remove em-dashes from user-visible copy (ResultsPane, FlowCanvas,
nodeCatalog, WelcomeTour); replace with colons/periods/parens.
Three related changes aimed at making both experts and newcomers able
to understand and play with the lab's algorithms through the demo.
UX basics (Batch 1):
- Fix all timing claims to match HF's shared CPU (~2 min, not ~60 s)
- Rename "Fake backend" -> "Noisy simulator" with a plain-English
description ("Simulates a real IBM quantum chip with its measured
noise. Runs locally, no IBM account needed.")
- Add a hover-X delete button on each canvas node, with a matching
hint in the block palette about the Backspace shortcut
- Sample circuit buttons now show a curated one-liner under the name,
replacing the auto-generated "N-qubit circuit, depth D" text
More demo circuits (Batch 2):
- Add 4 new samples: w_state_3q, qft_3q, ry_chain_6q, hardware_efficient_4q
- Each comes with a human-friendly description in the circuit picker
Results visualization (Batch 3):
- ResultsPane now renders per-algorithm cards instead of flat k/v rows:
- QuBound: 0-1 gauge + "lower is better" caption
…
Initial JQub Quantum Flow demo
Yuchen Yuan
1ee2bb3
- FastAPI backend serving QuCAD / QuBound / CompressVQC as a
topologically-sorted pipeline under /api/workflow/run
- React + Vite + React Flow frontend with drag-and-drop node palette
- 14-day offline cache of ibm_fez calibration so the demo runs
without an IBM Quantum token
- Two-stage Dockerfile targeting HuggingFace Spaces (port 7860)
Algorithms by Jovin Antony Maria (JQub); web refactor by Yuchen Yuan.