Set real and imaginary parts of the coefficients to 0 if
< tolin magnitude.
For example, the operator representing
1+1e-17j X + 1e-17 Ywith a tolerance larger than
1e-17will be reduced to
If a both the real and imaginary part of a coefficient is 0 after chopping, the corresponding Pauli is removed from the operator.
tol (float) – The absolute tolerance to check whether a real or imaginary part should be set to 0.
This operator with chopped coefficients.
- 반환 형식