Skip to content

Commit 1417df6

Browse files
committed
resolve TODO
1 parent cd28842 commit 1417df6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pygsti/tools/optools.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1963,16 +1963,6 @@ def extract_elementary_errorgen_coefficients(errorgen, elementary_errorgen_label
19631963
else:
19641964
errorgen_std = _bt.change_basis(errorgen, errorgen_basis, "std")
19651965

1966-
# TODO: remove this once I'm satisfied that our existing code is fine, actually.
1967-
# if _np.log2(errorgen_std.shape[0]) % 1 != 0:
1968-
# msg = """
1969-
# You're attempting to extract error generator coefficients for a superoperator
1970-
# over density matrices whose order is not a power of two. As a result, this
1971-
# superoperator is not expressible in the Pauli-product basis. We have no
1972-
# advice on how the output of this function should be interpreted.
1973-
# """
1974-
# _warnings.warn(msg)
1975-
19761966
flat_errorgen_std = errorgen_std.toarray().ravel() if _sps.issparse(errorgen_std) else errorgen_std.ravel()
19771967

19781968
d2 = errorgen_std.shape[0]

0 commit comments

Comments
 (0)