Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| projects:quantum:hottblockp1 [2025/09/23 11:18] – kymki | projects:quantum:hottblockp1 [2025/09/23 11:46] (current) – kymki | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Post 1 — Qubits and the Bloch Sphere ====== | ====== Post 1 — Qubits and the Bloch Sphere ====== | ||
| - | This first entry introduces the Bloch sphere representation of qubits and demonstrates how to obtain Bloch vectors with the accompanying Python code. | + | This first entry introduces the Bloch sphere representation of qubits and demonstrates how to obtain Bloch vectors with the [[https:// |
| ---- | ---- | ||
| Line 30: | Line 30: | ||
| <code python> | <code python> | ||
| import numpy as np | import numpy as np | ||
| - | import | + | import |
| # Basis states | # Basis states | ||
| Line 46: | Line 46: | ||
| Expected output: | Expected output: | ||
| - | * < | + | $|0\rangle$ maps to the north pole $(0,0,1)$. |
| - | * < | + | |
| - | * < | + | $|1\rangle$ maps to the south pole $(0,0,-1)$. |
| + | |||
| + | $|+\rangle$ maps to a point on the equator | ||
| ---- | ---- | ||
| Line 57: | Line 59: | ||
| <code bash> | <code bash> | ||
| - | python | + | python |
| </ | </ | ||