Land quantum Q4 visuals and gate Stream to LLM/agent imports.

Add probs/Bloch draw kinds and matches_matrix, plus feature docs; hide the view Stream panel unless llm/agent is imported, and stop rewriting method names like 绘图 through host_plot aliases.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-08-12 12:36:51 +08:00
1 parent 25b7be6739
commit eea6fe1a0e
20 files changed
+852 -23

No files matched your search

+33
View File
@@ -1493,6 +1493,39 @@ fn ext_quantum_steps_smoke() {
let _ = std::fs::remove_file(svg_path);
}
#[test]
fn ext_quantum_draw_smoke() {
let status = Command::new("cargo")
.args(["build", "-p", "marqdo_plugin_quantum"])
.current_dir(env!("CARGO_MANIFEST_DIR"))
.status()
.expect("build quantum plugin");
assert!(status.success(), "failed to build marqdo_plugin_quantum");
assert_out("tests/ext/quantum-draw-smoke.mq.md", "probs-ok\nbloch-ok");
for p in [
"tests/ext/quantum-draw-probs.svg",
"tests/ext/quantum-draw-bloch.svg",
] {
let svg = std::fs::read_to_string(p).unwrap_or_default();
assert!(svg.contains("<svg"), "expected svg at {p}");
let _ = std::fs::remove_file(p);
}
}
#[test]
fn ext_quantum_gate_matrix_smoke() {
let status = Command::new("cargo")
.args(["build", "-p", "marqdo_plugin_quantum"])
.current_dir(env!("CARGO_MANIFEST_DIR"))
.status()
.expect("build quantum plugin");
assert!(status.success(), "failed to build marqdo_plugin_quantum");
assert_out(
"tests/ext/quantum-gate-matrix-smoke.mq.md",
"match-ok\nreject-ok",
);
}
#[test]
fn ext_agent_framework_smoke() {
let status = Command::new("cargo")