In [1]:
from cutiepy import *
In [2]:
x,y,z = xyz()
k = Ket('k', 10)
b = Bra('b', 10)
O = Operator('O', 10)
S = Superoperator('S', 10)
t = Scalar('t')
In [3]:
b*S*O*k
Out[3]:
In [4]:
b*S*O*t**2*k
Out[4]:
In [5]:
b
Out[5]:
In [6]:
k1 = coherent(11, 1.5)
k1
Out[6]:
In [7]:
k2 = basis(5,3)
k2
Out[7]:
In [8]:
evalf(k2*2)
Out[8]:
In [9]:
expr = b*S*O*k
expr
Out[9]:
In [10]:
bb = Bra(r'another\ one', 10)
subs(expr, b, bb)
Out[10]: