Skip to content

Commit

Permalink
note that chop is not supported by SparsePauliOp either (#8895) (#8911)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit c950549)

Co-authored-by: Kevin J. Sung <kevjsung@umich.edu>
  • Loading branch information
mergify[bot] and kevinsung committed Oct 15, 2022
1 parent 4ceed47 commit 5151c44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qiskit/quantum_info/operators/symplectic/sparse_pauli_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class SparsePauliOp(LinearOp):
- ``to_matrix(sparse=True)`` since ``scipy.sparse`` cannot have objects as elements.
- ``to_operator()`` since :class:`~.quantum_info.Operator` does not support objects.
- ``sort``, ``argsort`` since :class:`.ParameterExpression` does not support comparison.
- ``equiv`` since :class:`.ParameterExpression`. cannot be converted into complex.
- ``equiv`` since :class:`.ParameterExpression` cannot be converted into complex.
- ``chop`` since :class:`.ParameterExpression` does not support absolute value.
"""

def __init__(self, data, coeffs=None, *, ignore_pauli_phase=False, copy=True):
Expand Down

0 comments on commit 5151c44

Please sign in to comment.