// Tour slide 2: the algorithm blocks as cards with inline SVG visuals. // // Kicker and heading avoid a fixed count — the cards below are // currently QuCAD, QuBound, CompressVQC, Qshot, but the lab ships new // modules regularly. When you add a fifth+ block, bump the lg:grid-cols // breakpoint so the cards don't get squeezed. import { FileText, LineChart, Shrink, Target, Waypoints } from "lucide-react"; import { NODE_BY_KIND, type NodeKind } from "../../lib/nodeCatalog"; export function AlgorithmsSlide() { return (
The algorithm blocks

One block per algorithm. Chain them any way you like.

} name="QuCAD" kind="qucad" oneLine="Noise-aware VQC sparsification." detail="Prunes parameters that don't survive hardware noise, via ADMM with a stochastic-mask regulariser. Fewer gates, same answer." > } name="QuBound" kind="qubound" oneLine="Today's error bound, predicted." detail="Trains an LSTM on 14 days of real IBM Fez calibration data to predict a tight fidelity bound for your circuit, without running it." > } name="CompressVQC" kind="compvqc" oneLine="QAOA-optimized circuit folding." detail="Builds a lookup table of equivalent gate sequences, then solves a QUBO to fold redundant rotations on Heron-family hardware." > } name="Qshot" kind="qshot" oneLine="Recommended shot count, predicted." detail="Matches your circuit against ~3k simulator-measured fidelity curves (under bundled IBM noise models) to find the smallest shot count that achieves a target fidelity bound. Falls back to a dual-graph GNN when no cluster matches — typically for circuits outside the 5–8 qubit training range or with unusual structure." >
These aren't toy demos. Each block wraps the actual code from the lab's research publications. Runs happen server-side with Qiskit + PyTorch.
); } function AlgoCard({ accent, border, bg, icon, name, kind, oneLine, detail, children, }: { accent: string; border: string; bg: string; icon: React.ReactNode; name: string; kind: NodeKind; oneLine: string; detail: string; children: React.ReactNode; }) { const paper = NODE_BY_KIND[kind]?.paper; return (
{icon}
{name}
{oneLine}
{detail}
{paper && ( {paper.venue} )}
{children}
); } function QuCADVisual() { // Parameter-magnitude bars: pre-prune (tall) vs post-prune (many zero). const pre = [0.7, 0.9, 0.45, 0.82, 0.55, 0.65, 0.92, 0.38, 0.7, 0.6]; const post = [0.72, 0.92, 0.0, 0.85, 0.0, 0.0, 0.95, 0.0, 0.71, 0.0]; return ( {pre.map((h, i) => ( ))} ); } function QuBoundVisual() { // A wavy calibration history followed by a flat predicted bound. const pts = Array.from({ length: 48 }, (_, i) => { const x = i * 4 + 8; const noise = 30 + 12 * Math.sin(i / 3) + 6 * Math.sin(i / 1.4) + (i > 36 ? 4 : 0); return `${x},${80 - noise * 1.2}`; }).join(" "); return ( {/* prediction zone */} bound 14-day noise → ); } function CompVQCVisual() { // "Before" and "after" gate sequences; some gates dimmed out (folded). const before = [0, 1, 2, 3, 4, 5, 6]; const folded = new Set([1, 3, 5]); return ( {/* two qubit lines */} {before.map((i) => ( {folded.has(i) && ( <> )} ))} 3 of 7 rotations folded ); } function QshotVisual() { // Shows the F(s) = F_inf - a/s^b convergence curve, a horizontal // dashed target line at α × F_inf, and a vertical dashed marker at // the recommended shot count where the curve crosses target. Mirrors // the diagnostic plot Qshot itself emits via plot_recommendation(). const W = 240; const H = 84; // f(s) = 0.985 - 1.6 / s^0.65 sampled across shots ∈ [40, 4000] in // log space → mapped onto the SVG viewport. const F_INF = 0.985; const A = 1.6; const B = 0.65; const SHOTS_MIN = 40; const SHOTS_MAX = 4000; const N = 50; const xOf = (s: number) => 16 + ((Math.log(s) - Math.log(SHOTS_MIN)) / (Math.log(SHOTS_MAX) - Math.log(SHOTS_MIN))) * (W - 28); const yOf = (f: number) => H - 14 - (f - 0.4) * (H - 22) / 0.6; const points = Array.from({ length: N }, (_, i) => { const s = SHOTS_MIN * Math.pow(SHOTS_MAX / SHOTS_MIN, i / (N - 1)); const f = F_INF - A / Math.pow(s, B); return `${xOf(s).toFixed(1)},${yOf(f).toFixed(1)}`; }).join(" "); const target = 0.95 * F_INF; // α × F_inf // Solve F_inf - a/s^b = target → s = (a / (F_inf - target))^(1/b) const recommendedShots = Math.pow(A / (F_INF - target), 1 / B); return ( {/* axes */} {/* target horizontal dashed line + label */} α·F∞ {/* recommended shots vertical dashed line + label */} {/* the convergence curve */} {/* the recommended-shot point */} {/* axis labels */} fidelity → shots (log) → recommended ); }