qiskit.aqua.operators.legacy.Z2Symmetries.consistent_tapering¶
-
Z2Symmetries.
consistent_tapering
(operator)[source]¶ Tapering the operator with the same manner of how this tapered operator is created. i.e., using the same Cliffords and tapering values.
- Parameters
operator (WeightedPauliOperator) – the to-be-tapered operator
- Returns
the tapered operator
- Return type
TaperedWeightedPauliOperator
- Raises
AquaError – The given operator does not commute with the symmetry