Add density-matrix ops (partial trace, Hermitian eig, Schmidt, Pauli expect, purity/fidelity, kron) and hinton/city/qsphere/paulivec/multibloch draw kinds via plugins/quantum ABI, with EN/ZH L1 and gold smokes. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
546 B
Markdown
21 lines
546 B
Markdown
---
|
|
title: quantum viz advanced smoke
|
|
description: Q7b hinton / qsphere / multibloch SVG markers
|
|
import quantum:ext/quantum/quantum.mq.md
|
|
---
|
|
|
|
# main
|
|
|
|
*qc = > quantum.circuit qubits=2*
|
|
*qc = > `qc`.h qubit=0*
|
|
*qc = > `qc`.cx control=0 target=1*
|
|
|
|
*h = > `qc`.draw kind="hinton" path="quantum-viz-hinton.svg"*
|
|
*q = > `qc`.draw kind="qsphere" path="quantum-viz-qsphere.svg"*
|
|
*m = > `qc`.draw kind="multibloch" path="quantum-viz-multibloch.svg"*
|
|
|
|
*rho = > `qc`.density*
|
|
*c = > `rho`.draw kind="city" path="quantum-viz-city.svg"*
|
|
|
|
> print text=viz-ok
|