def __projector(op_list, basis):
    'Returns a projectors.\n    '
    ret = 1
    for op in op_list:
        (label, eigenstate) = op
        ret = np.kron(basis[label][eigenstate], ret)
    return ret
Returns a projectors.
def __projector(op_list, basis):
    '\n    '
    ret = 1
    for op in op_list:
        (label, eigenstate) = op
        ret = np.kron(basis[label][eigenstate], ret)
    return ret