def METHOD_NAME(self):
    """pauli expect pair test"""
    op = Z ^ Z
    # wf = (Pl^Pl) + (Ze^Ze)
    wf = CX @ (H ^ I) @ Zero
    converted_meas = self.expect.convert(~StateFn(op) @ wf)
    self.assertAlmostEqual(converted_meas.eval(), 0, delta=0.1)
    with self.assertWarns(DeprecationWarning):
        sampled = self.sampler.convert(converted_meas)
    self.assertAlmostEqual(sampled.eval(), 0, delta=0.1)