lime/oqs.py
def func(rho, h0, c_ops, l_ops):
    """
    right-hand side of the master equation
    """
    rhs = -1j * commutator(h0, rho)

    for i in range(len(c_ops)):
        c_op = c_ops[i]
        l_op = l_ops[i]
        rhs -=  commutator(c_op, l_op.dot(rho) - rho.dot(dag(l_op)))
    return rhs

    right-hand side of the master equation
    
right-hand side of the master equation
right - hand side of the master equation
def func(rho, h0, c_ops, l_ops):
    rhs = -1j * commutator(h0, rho)
    for i in range(len(c_ops)):
        c_op = c_ops[i]
        l_op = l_ops[i]
        rhs -=  commutator(c_op, l_op.dot(rho) - rho.dot(dag(l_op)))
    return rhs
def func ( rho , h0 , c_ops , l_ops ) : rhs = - 1j * commutator ( h0 , rho ) for i in range ( len ( c_ops ) ) : c_op = c_ops [ i ] l_op = l_ops [ i ] rhs -= commutator ( c_op , l_op . dot ( rho ) - rho . dot ( dag ( l_op ) ) ) return rhs
right-hand side of the master equation
right - hand side of the master equation
"""
    right-hand side of the master equation
    """
rho
h0
c_ops
l_ops