3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-27 06:43:40 +01:00
dft_tools/doc/reference/python/operators/manipulate.py
Michel Ferrero e90bd92d99 Add documentation about operators and IPT
new file:   doc/reference/python/operators/
  new file:   doc/tutorials/python/ipt/
2013-08-21 10:12:15 +02:00

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'))