class_docstr: Test that tapes containing matrix-valued parameters are drawn correctly.
docstr: Test matrix valued parameters remembered and printed out upon request.
docstr_tok: ["Test","matrix","valued","parameters","remembered","and","printed","out","upon","request","."]
code: def test_matrix_parameters(self):
      """Test matrix valued parameters remembered and printed out upon request."""
  
      @qml.qnode(qml.device("default.qubit", wires=2))
      def matrices_circuit():
          qml.StatePrep([1.0, 0.0, 0.0, 0.0], wires=(0, 1))
          qml.QubitUnitary(np.eye(2), wires=0)
          return qml.expval(qml.Hermitian(np.eye(2), wires=0))
  
      expected1 = (
          "0: ─╭|Ψ⟩──U(M0)─┤  <𝓗(M0)>\n1: ─╰|Ψ⟩────────┤         "
      )
  
      assert draw(matrices_circuit, show_matrices=False)() == expected1
  
      expected2 = (
          "0: ─╭|Ψ⟩──U(M0)─┤  <𝓗(M0)>\n"
          "1: ─╰|Ψ⟩────────┤         \n"
          "\n"
          "M0 = \n[[1. 0.]\n [0. 1.]]"
      )
      assert draw(matrices_circuit)() == expected2
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.drawer import draw
label_desc: Use image node_id 1 for calling the TestMatrixParameters obj's underlying member method code with example usage: obj.test_matrix_parameters() and returns: qml