class_docstr: Test tensor expectation values
class_docstr_tok: ["Test","tensor","expectation","values"]
docstr: Test that a tensor product involving PauliX and PauliY works correctly
code: def test_paulix_pauliy(self, device, tol, skip_if):
      """Test that a tensor product involving PauliX and PauliY works correctly"""
      n_wires = 3
      dev = device(n_wires)
      skip_if(dev, {"supports_tensor_observables": False})
  
      theta = 0.432
      phi = 0.123
      varphi = -0.543
  
      @qml.qnode(dev)
      def circuit():
          qml.RX(theta, wires=[0])
          qml.RX(phi, wires=[1])
          qml.RX(varphi, wires=[2])
          qml.CNOT(wires=[0, 1])
          qml.CNOT(wires=[1, 2])
          return qml.expval(qml.PauliX(wires=0) @ qml.PauliY(wires=2))
  
      res = circuit()
  
      expected = np.sin(theta) * np.sin(phi) * np.sin(varphi)
      assert np.allclose(res, expected, atol=tol(dev.shots))
  
imports: import pytest
  from flaky import flaky
  from scipy.sparse import csr_matrix
  import pennylane
  from pennylane import numpy
  from pennylane.measurements import ClassicalShadowMP, MeasurementTransform, SampleMeasurement, SampleMP, StateMeasurement, StateMP
label_desc: Use image node_id 1 for calling the TestTensorExpval obj's underlying member method code with example usage: obj.test_paulix_pauliy(device, tol, skip_if) and returns: qml