mirror of
https://github.com/triqs/dft_tools
synced 2024-12-26 14:23:38 +01:00
9 lines
209 B
Python
9 lines
209 B
Python
|
from pytriqs.operators import *
|
||
|
|
||
|
H = C('up',1) * Cdag('up',2) + C('up',2) * Cdag('up',1)
|
||
|
print H
|
||
|
print H - H.dagger()
|
||
|
|
||
|
print anti_commutator(C('up'),Cdag('up'))
|
||
|
print anti_commutator(C('up'),0.5*Cdag('down'))
|