Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

chop

chop(array, epsilon=1e-10)

GitHub

Truncate small values of a complex array.

Parameters

  • array (array_like) – array to truncate small values.
  • epsilon (float) – threshold.

Returns

A new operator with small values set to zero.

Return type

np.array

Was this page helpful?
Report a bug or request content on GitHub.