Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
projects:quantum:hottblockp1 [2025/09/23 11:18] kymkiprojects: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://github.com/erikkallman/hottbloch|accompanying Python code]].
  
 ---- ----
Line 30: Line 30:
 <code python> <code python>
 import numpy as np import numpy as np
-import hott_bloch_edu as h+import hottbloch as h
  
 # Basis states # Basis states
Line 46: Line 46:
 Expected output: Expected output:
  
-  * <latex>|0\rangle</latex> maps to the north pole (0,0,1). +$|0\ranglemaps to the north pole $(0,0,1)$.  
-  * <latex>|1\rangle</latex> maps to the south pole (0,0,-1). + 
-  * <latex>|+\rangle</latex> maps to a point on the equator (1,0,0).+$|1\ranglemaps to the south pole $(0,0,-1)$.  
 + 
 +$|+\ranglemaps to a point on the equator $(1,0,0)$.
  
 ---- ----
Line 57: Line 59:
  
 <code bash> <code bash>
-python hott_bloch_edu.py --out ./hott_outputs --loop equator --theta 0+python hottbloch.py --out ./hott_outputs --loop equator --theta 0
 </code> </code>