TheYuchen commited on
Commit
c50b89a
·
1 Parent(s): 4117bcd

Palette taglines fit the tile: no mid-thought ellipsis

Browse files

At the 108px tile width the 9px tagline clamps at two lines, and three
built-ins ellipsized mid-thought live ("your quantum...", "predict
today's erro...", "recommend shot..."). Taglines are rewritten to
honest microcopy that reads complete inside the budget: your circuit /
simulated IBM chip / error bound / shot count / fold gates;
noise-aware pruning, fresh IBM calibration, how close to ideal?, and
final metrics & diagram already fit and stay. The full thought lives
in `description`, which is the tile's hover tooltip (unchanged), and
the NodeSpec.tagline doc now states the two-line budget so future
blocks cannot regress it.

Files changed (1) hide show
  1. frontend/src/lib/nodeCatalog.ts +10 -6
frontend/src/lib/nodeCatalog.ts CHANGED
@@ -63,7 +63,11 @@ export interface NodeSpec {
63
  kind: NodeKind;
64
  label: string;
65
  family: "source" | "backend" | "algorithm" | "metric" | "sink";
66
- /** Short human-friendly caption (~3-5 words) shown under the label. */
 
 
 
 
67
  tagline: string;
68
  /** Long-form description: hover tooltip on the palette tile and
69
  * subtitle text on the canvas node. */
@@ -97,7 +101,7 @@ export const NODE_CATALOG: NodeSpec[] = [
97
  kind: "input_circuit",
98
  label: "Input circuit",
99
  family: "source",
100
- tagline: "your quantum program",
101
  description:
102
  "The program under test — a quantum circuit, possibly with trainable parameters (uploaded .qpy or a built-in sample).",
103
  icon: Atom,
@@ -109,7 +113,7 @@ export const NODE_CATALOG: NodeSpec[] = [
109
  kind: "fake_backend",
110
  label: "Noisy simulator",
111
  family: "backend",
112
- tagline: "local IBM-chip simulator",
113
  description:
114
  "Simulates a real IBM quantum chip with its measured noise. Runs locally, no IBM account needed.",
115
  icon: Server,
@@ -236,7 +240,7 @@ export const NODE_CATALOG: NodeSpec[] = [
236
  kind: "qubound",
237
  label: "QuBound",
238
  family: "algorithm",
239
- tagline: "predict today's error bound",
240
  description:
241
  "Predicts today's error bound from the machine's last 14 days of measured error rates (a small learned model). Set a threshold to get a pass/fail decision.",
242
  icon: LineChart,
@@ -280,7 +284,7 @@ export const NODE_CATALOG: NodeSpec[] = [
280
  kind: "compvqc",
281
  label: "CompressVQC",
282
  family: "algorithm",
283
- tagline: "fold redundant gates",
284
  description:
285
  "Circuit compression: merges redundant rotation operations via a precomputed lookup table, so the same computation uses fewer operations.",
286
  icon: Shrink,
@@ -310,7 +314,7 @@ export const NODE_CATALOG: NodeSpec[] = [
310
  kind: "qshot",
311
  label: "Qshot",
312
  family: "algorithm",
313
- tagline: "recommend shot count",
314
  description:
315
  "Recommends how many repeated measurements (shots) are needed to meet a target accuracy, with statistical confidence, on a chosen day's machine noise. Self-contained — no upstream backend required.",
316
  icon: Target,
 
63
  kind: NodeKind;
64
  label: string;
65
  family: "source" | "backend" | "algorithm" | "metric" | "sink";
66
+ /** Palette-tile microcopy. BUDGET: must read complete within two
67
+ * 9px lines at the tile's 108px width (≈12 chars/line) — the tile
68
+ * clamps at 2 lines, so anything longer ellipsizes mid-thought
69
+ * ("predict today's erro…"). The full thought belongs in
70
+ * `description`, which is the tile's hover tooltip. */
71
  tagline: string;
72
  /** Long-form description: hover tooltip on the palette tile and
73
  * subtitle text on the canvas node. */
 
101
  kind: "input_circuit",
102
  label: "Input circuit",
103
  family: "source",
104
+ tagline: "your circuit",
105
  description:
106
  "The program under test — a quantum circuit, possibly with trainable parameters (uploaded .qpy or a built-in sample).",
107
  icon: Atom,
 
113
  kind: "fake_backend",
114
  label: "Noisy simulator",
115
  family: "backend",
116
+ tagline: "simulated IBM chip",
117
  description:
118
  "Simulates a real IBM quantum chip with its measured noise. Runs locally, no IBM account needed.",
119
  icon: Server,
 
240
  kind: "qubound",
241
  label: "QuBound",
242
  family: "algorithm",
243
+ tagline: "error bound",
244
  description:
245
  "Predicts today's error bound from the machine's last 14 days of measured error rates (a small learned model). Set a threshold to get a pass/fail decision.",
246
  icon: LineChart,
 
284
  kind: "compvqc",
285
  label: "CompressVQC",
286
  family: "algorithm",
287
+ tagline: "fold gates",
288
  description:
289
  "Circuit compression: merges redundant rotation operations via a precomputed lookup table, so the same computation uses fewer operations.",
290
  icon: Shrink,
 
314
  kind: "qshot",
315
  label: "Qshot",
316
  family: "algorithm",
317
+ tagline: "shot count",
318
  description:
319
  "Recommends how many repeated measurements (shots) are needed to meet a target accuracy, with statistical confidence, on a chosen day's machine noise. Self-contained — no upstream backend required.",
320
  icon: Target,