Bloch Sphere
Single-qubit state on the Bloch sphere with θ and φ.
Rendering…
Make it your own.
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 320" width="320" height="320">
<style>
text { font:12px Inter, sans-serif; fill:#0f172a; }
.lab { font-weight:600; }
line.ax { stroke:#94a3b8; stroke-width:1; }
</style>
<circle cx="160" cy="160" r="120" fill="none" stroke="#0f172a" stroke-width="1.4"/>
<ellipse cx="160" cy="160" rx="120" ry="32" fill="none" stroke="#94a3b8" stroke-dasharray="3 3"/>
<!-- axes -->
<line class="ax" x1="160" y1="20" x2="160" y2="300"/>
<line class="ax" x1="20" y1="160" x2="300" y2="160"/>
<line class="ax" x1="80" y1="220" x2="240" y2="100"/>
<text class="lab" x="155" y="14">|0⟩</text>
<text class="lab" x="155" y="316">|1⟩</text>
<text class="lab" x="304" y="164">+x</text>
<text class="lab" x="0" y="164">-x</text>
<text class="lab" x="244" y="98">+y</text>
<!-- State vector -->
<line x1="160" y1="160" x2="220" y2="80" stroke="#dc2626" stroke-width="2.2"/>
<circle cx="220" cy="80" r="4" fill="#dc2626"/>
<text class="lab" x="226" y="76">|ψ⟩</text>
<text x="170" y="120">θ</text>
<text x="190" y="170">φ</text>
<!-- arc indicators -->
<path d="M160,120 A20,20 0 0,1 180,140" fill="none" stroke="#3666ff" stroke-width="1.4"/>
<path d="M180,160 A20,20 0 0,1 195,148" fill="none" stroke="#16a34a" stroke-width="1.4"/>
</svg>