mirror of
https://github.com/triqs/dft_tools
synced 2024-12-25 22:03:43 +01:00
e90bd92d99
new file: doc/reference/python/operators/ new file: doc/tutorials/python/ipt/
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'))
|