Release 2.7.0: executable handbooks and native user-site workflows

This commit is contained in:
cflmy committed 2026-11-10 17:03:06 +08:00
1 parent aa0c4d0f55
commit d9aef957f7
562 files changed
+21064 -20387

No files matched your search

+10 -5
View File
@@ -10,10 +10,15 @@ import:
# Bell |Φ+⟩
H on qubit 0, then CNOT(0→1). Ideal measurement: |00⟩ and |11⟩ each with probability 1/2.
# main
| 返回 | 类型 | 说明 |
|---|---|---|
| result | any | None; execute this page's documented steps in order and observe their output or stated effects |
`steps` =
| step | gate | qubits |
@@ -21,9 +26,9 @@ H on qubit 0, then CNOT(0→1). Ideal measurement: |00⟩ and |11⟩ each with p
| 1 | H | 0 |
| 2 | CX | 0,1 |
**qc = > quantum.circuit qubits=2 steps=`steps`**
**p = > qc.probabilities**
**_ = > qc.draw path="bell.svg"**
**_ = > qc.draw kind="probs" path="bell-probs.svg"**
We first **qc = [Compute qc](quantum.circuit(qubits=2, steps=`steps`))** for the next step.
We first **p = [Compute p](qc.probabilities())** for the next step.
We first **_ = [Compute _](qc.draw(path="bell.svg"))** for the next step.
We first **_ = [Compute _](qc.draw(kind="probs", path="bell-probs.svg"))** for the next step.
> print text=`p`
We now **[Display this step's result](> print text=`p`)**.