Split ext/quantum into index + modules, add marqdo call --effects/--session/--toget, narrative-ratio checks, and a same-package 量子/ tree so agents can follow a decision path for Bell demos without inventing a second API. Co-authored-by: Cursor <cursoragent@cursor.com>
1.0 KiB
1.0 KiB
markup, title, description, import
| markup | title | description | import | ||||
|---|---|---|---|---|---|---|---|
| occlusion | quantum linalg smoke | Q7a density / partial_trace / expect / schmidt / purity |
|
main
qc = > quantum.circuit qubits=2
qc = > qc.h qubit=0
qc = > qc.cx control=0 target=1
rho = > qc.density
pur = > rho.purity
lo = > math.div a=9 b=10
pur>lo
print text=purity-ok
print text=purity-fail
red = > rho.partial_trace keep=0
rpur = > red.purity
half_lo = > math.div a=4 b=10
half_hi = > math.div a=6 b=10
rpur>half_lorpur<half_hi> print text=reduce-ok-
> print text=reduce-fail
print text=reduce-fail
zz = "ZZ"
ezz = > qc.expect obs=zz
zzi = > math.div a=9 b=10
ezz>zzi
print text=expect-ok
print text=expect-fail
sch = > qc.schmidt cut=1
ent = entropy)
elo = > math.div a=1 b=2
ent>elo
print text=schmidt-ok
print text=schmidt-fail