PyOR Quantum

Author: Vineeth Thalakottoor

Introduction to Spin Operators (Single Spin)

[1]:
# Define the source path
SourcePath = '/media/HD2/Vineeth/PostDoc_Simulations/Github/PyOR_V1/PyOR_Combined/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" : "H2"}
QS = QunS(Spin_list,PrintDefault=False)

# initialize the system
QS.Initialize()
[3]:
# "X" spin operator
QS.Ax.matrix
[3]:
$\displaystyle \left[\begin{matrix}0 & 0.70710676908493 & 0\\0.70710676908493 & 0 & 0.70710676908493\\0 & 0.70710676908493 & 0\end{matrix}\right]$
[4]:
# "Y" spin operator
QS.Ay.matrix
[4]:
$\displaystyle \left[\begin{matrix}0 & - 0.70710676908493 i & 0\\0.70710676908493 i & 0 & - 0.70710676908493 i\\0 & 0.70710676908493 i & 0\end{matrix}\right]$
[5]:
# "Z" spin operator
QS.Az.matrix
[5]:
$\displaystyle \left[\begin{matrix}1.0 & 0 & 0\\0 & 0 & 0\\0 & 0 & -1.0\end{matrix}\right]$
[6]:
# "+"" spin operator
QS.Ap.matrix
[6]:
$\displaystyle \left[\begin{matrix}0 & 1.41421353816986 & 0\\0 & 0 & 1.41421353816986\\0 & 0 & 0\end{matrix}\right]$
[7]:
# "-"" spin operator
QS.Am.matrix
[7]:
$\displaystyle \left[\begin{matrix}0 & 0 & 0\\1.41421353816986 & 0 & 0\\0 & 1.41421353816986 & 0\end{matrix}\right]$
[8]:
# Particle Parameter: Nuclies name
QS.A.name
[8]:
'H2'
[9]:
# Particle Parameter: Spin quantum number
QS.A.spin
[9]:
1
[10]:
# Particle Parameter: gyromagnetic ratio
QS.A.gamma
[10]:
41065000.0
[11]:
# Particle Parameter: Quadrupole vale
QS.A.quadrupole
[11]:
2.86e-29