PyOR Quantum
Author: Vineeth Thalakottoor
Introduction to Zeeman States
[1]:
# Define the source path
SourcePath = '/media/HD2/Vineeth/PostDoc_Simulations/Github/PyOR_V1/PyOR_Combined/PyOR/Source_Doc'
# Add source path
import sys
sys.path.append(SourcePath)
# Import PyOR package
from PyOR_QuantumSystem import QuantumSystem as QunS
[2]:
# Define the spin system
Spin_list = {"A" : "H1","B" : "H1","C" : "H1"}
QS = QunS(Spin_list,PrintDefault=False)
# initialize the system
QS.Initialize()
[3]:
X1 = QS.State({"A": 1/2,"B": 1/2,"C": 1/2})
X1.matrix
[3]:
$\displaystyle \left[\begin{matrix}1.0\\0\\0\\0\\0\\0\\0\\0\end{matrix}\right]$
[4]:
X2 = QS.State({"A": 1/2,"B": 1/2,"C": -1/2})
X2.matrix
[4]:
$\displaystyle \left[\begin{matrix}0\\1.0\\0\\0\\0\\0\\0\\0\end{matrix}\right]$
[5]:
X3 = QS.State({"A": 1/2,"B": -1/2,"C": 1/2})
X3.matrix
[5]:
$\displaystyle \left[\begin{matrix}0\\0\\1.0\\0\\0\\0\\0\\0\end{matrix}\right]$
[6]:
X4 = QS.State({"A": 1/2,"B": -1/2,"C": -1/2})
X4.matrix
[6]:
$\displaystyle \left[\begin{matrix}0\\0\\0\\1.0\\0\\0\\0\\0\end{matrix}\right]$
[7]:
X5 = QS.State({"A": -1/2,"B": 1/2,"C": 1/2})
X5.matrix
[7]:
$\displaystyle \left[\begin{matrix}0\\0\\0\\0\\1.0\\0\\0\\0\end{matrix}\right]$
[8]:
X6 = QS.State({"A": -1/2,"B": 1/2,"C": -1/2})
X6.matrix
[8]:
$\displaystyle \left[\begin{matrix}0\\0\\0\\0\\0\\1.0\\0\\0\end{matrix}\right]$
[9]:
X7 = QS.State({"A": -1/2,"B": -1/2,"C": 1/2})
X7.matrix
[9]:
$\displaystyle \left[\begin{matrix}0\\0\\0\\0\\0\\0\\1.0\\0\end{matrix}\right]$
[10]:
X8 = QS.State({"A": -1/2,"B": -1/2,"C": -1/2})
X8.matrix
[10]:
$\displaystyle \left[\begin{matrix}0\\0\\0\\0\\0\\0\\0\\1.0\end{matrix}\right]$