qutip/core/superop_reps.py

Summary

Maintainability
A
0 mins
Test Coverage

TODO found
Open

# TODO: revisit when creation routines have dispatching.
Severity: Minor
Found in qutip/core/superop_reps.py by fixme

TODO found
Open

    # TODO: use this to generalize to_kraus to the case where U != V.
Severity: Minor
Found in qutip/core/superop_reps.py by fixme

FIXME found
Open

    # FIXME: does not preserve dims!
Severity: Minor
Found in qutip/core/superop_reps.py by fixme

TODO found
Open

    # TODO: document!
Severity: Minor
Found in qutip/core/superop_reps.py by fixme

TODO found
Open

    # TODO: document!
Severity: Minor
Found in qutip/core/superop_reps.py by fixme

TODO found
Open

    TODO: Create a new class structure for quantum channels, perhaps as a
Severity: Minor
Found in qutip/core/superop_reps.py by fixme

Whitespace before ':'
Open

        sci.indices[ptr : ptr+ptr_inc] = basis_ket_sci.indices
Severity: Minor
Found in qutip/core/superop_reps.py by pep8

Avoid extraneous whitespace.

Avoid extraneous whitespace in these situations:
- Immediately inside parentheses, brackets or braces.
- Immediately before a comma, semicolon, or colon.

Okay: spam(ham[1], {eggs: 2})
E201: spam( ham[1], {eggs: 2})
E201: spam(ham[ 1], {eggs: 2})
E201: spam(ham[1], { eggs: 2})
E202: spam(ham[1], {eggs: 2} )
E202: spam(ham[1 ], {eggs: 2})
E202: spam(ham[1], {eggs: 2 })

E203: if x == 4: print x, y; x, y = y , x
E203: if x == 4: print x, y ; x, y = y, x
E203: if x == 4 : print x, y; x, y = y, x

Line too long (81 > 79 characters)
Open

    return [Qobj(_data.mul(unstack_columns(vec.data, shape=shape), np.sqrt(val)),
Severity: Minor
Found in qutip/core/superop_reps.py by pep8

Limit all lines to a maximum of 79 characters.

There are still many devices around that are limited to 80 character
lines; plus, limiting windows to 80 characters makes it possible to
have several windows side-by-side.  The default wrapping on such
devices looks ugly.  Therefore, please limit all lines to a maximum
of 79 characters. For flowing long blocks of text (docstrings or
comments), limiting the length to 72 characters is recommended.

Reports error E501.

Whitespace before ':'
Open

        sci.data[ptr : ptr+ptr_inc] = basis_ket_sci.data
Severity: Minor
Found in qutip/core/superop_reps.py by pep8

Avoid extraneous whitespace.

Avoid extraneous whitespace in these situations:
- Immediately inside parentheses, brackets or braces.
- Immediately before a comma, semicolon, or colon.

Okay: spam(ham[1], {eggs: 2})
E201: spam( ham[1], {eggs: 2})
E201: spam(ham[ 1], {eggs: 2})
E201: spam(ham[1], { eggs: 2})
E202: spam(ham[1], {eggs: 2} )
E202: spam(ham[1 ], {eggs: 2})
E202: spam(ham[1], {eggs: 2 })

E203: if x == 4: print x, y; x, y = y , x
E203: if x == 4: print x, y ; x, y = y, x
E203: if x == 4 : print x, y; x, y = y, x

There are no issues that match your filters.

Category
Status