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]:
QS.ZeemanBasis_Ket()
[3]:
['|1/2,1/2⟩|1/2,1/2⟩|1/2,1/2⟩',
 '|1/2,1/2⟩|1/2,1/2⟩|1/2,-1/2⟩',
 '|1/2,1/2⟩|1/2,-1/2⟩|1/2,1/2⟩',
 '|1/2,1/2⟩|1/2,-1/2⟩|1/2,-1/2⟩',
 '|1/2,-1/2⟩|1/2,1/2⟩|1/2,1/2⟩',
 '|1/2,-1/2⟩|1/2,1/2⟩|1/2,-1/2⟩',
 '|1/2,-1/2⟩|1/2,-1/2⟩|1/2,1/2⟩',
 '|1/2,-1/2⟩|1/2,-1/2⟩|1/2,-1/2⟩']
[4]:
QS.ZeemanBasis_Bra()
[4]:
['⟨1/2,1/2|⟨1/2,1/2|⟨1/2,1/2|',
 '⟨1/2,1/2|⟨1/2,1/2|⟨1/2,-1/2|',
 '⟨1/2,1/2|⟨1/2,-1/2|⟨1/2,1/2|',
 '⟨1/2,1/2|⟨1/2,-1/2|⟨1/2,-1/2|',
 '⟨1/2,-1/2|⟨1/2,1/2|⟨1/2,1/2|',
 '⟨1/2,-1/2|⟨1/2,1/2|⟨1/2,-1/2|',
 '⟨1/2,-1/2|⟨1/2,-1/2|⟨1/2,1/2|',
 '⟨1/2,-1/2|⟨1/2,-1/2|⟨1/2,-1/2|']