def METHOD_NAME(self):
    """Test setting cutoff tolerances for the tapered operator works."""
    qubit_op = SparsePauliOp.from_list(
        [
            ("II", -1.0537076071291125),
            ("IZ", 0.393983679438514),
            ("ZI", -0.39398367943851387),
            ("ZZ", -0.01123658523318205),
            ("XX", 0.1812888082114961),
        ]
    )
    z2_symmetries = Z2Symmetries.find_z2_symmetries(qubit_op)
    z2_symmetries.tol = 0.2  # removes the X part of the tapered op which is < 0.2
    tapered_op = z2_symmetries.taper(qubit_op)[1]
    primitive = SparsePauliOp.from_list(
        [
            ("I", -1.0424710218959303),
            ("Z", -0.7879673588770277),
        ]
    )
    expected_op = primitive
    self.assertEqual(tapered_op, expected_op)