class_docstr: Test the output of the MPS template.
docstr: Verifies that the output of the circuits is correct.
docstr_tok: ["Verifies","that","the","output","of","the","circuits","is","correct","."]
code: def test_output(
      self,
      block,
      n_params_block,
      wires,
      n_block_wires,
      template_weights,
      offset,
      kwargs,
      expected_circuit,
  ):
      """Verifies that the output of the circuits is correct."""
      dev = qml.device("default.qubit", wires=wires)
      block = getattr(self, block)
      expected_circuit = getattr(self, expected_circuit)
  
      @qml.qnode(dev)
      def circuit_template():
          qml.MPS(
              wires,
              n_block_wires,
              block,
              n_params_block,
              template_weights,
              offset=offset,
              **kwargs,
          )
          return qml.expval(qml.PauliZ(wires=wires[-1]))
  
      template_result = circuit_template()
  
      @qml.qnode(dev)
      def circuit_manual():
          expected_circuit(weights=template_weights, wires=wires)
          return qml.expval(qml.PauliZ(wires=wires[-1]))
  
      manual_result = circuit_manual()
      assert np.isclose(template_result, manual_result)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.templates.tensornetworks.mps import compute_indices_MPS, MPS
label_desc: Use image node_id 8 for calling the TestTemplateOutputs obj's underlying member method code with example usage: obj.test_output(block, n_params_block, wires, n_block_wires, template_weights, offset, kwargs, expected_circuit) and returns: qml, qml