Fix public docs run errors and optional gate matrix binding.

Markdown list dashes were parsed as loops; quantum.gate name=H failed because plugin bind required matrix. Repair user-site pages and redeploy-ready sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-12 15:36:58 +08:00
1 parent db27f5c8d3
commit 209dc4fc5d
24 files changed
+137 -52

No files matched your search

+3 -2
View File
@@ -668,10 +668,11 @@ pub unsafe extern "C" fn marqdo_plugin_init(host: *const MarqdoHostApi) -> c_int
"circuit,path,kind,qubit",
quantum_draw_circuit as PluginFn,
),
("quantum_gate_new", "name,theta,matrix", quantum_gate_new as PluginFn),
// `matrix` is optional (custom unitary); omit from required bind list.
("quantum_gate_new", "name,theta", quantum_gate_new as PluginFn),
(
"quantum_gate_from_matrix",
"matrix,name",
"matrix",
quantum_gate_from_matrix as PluginFn,
),
(