Skip to content

Commit

Permalink
note that chop is not supported by SparsePauliOp either (#8895)
Browse files Browse the repository at this point in the history
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
kevinsung and mergify[bot] committed Oct 15, 2022
1 parent 8ccfda5 commit c950549
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 c950549

Please sign in to comment.