class_docstr: Integration test of classical and quantum fisher information matrices
class_docstr_tok: ["Integration","test","of","classical","and","quantum","fisher","information","matrices"]
docstr: Testing that for any number of wires and parameters, the correct size and values are computed
docstr_tok: ["Testing","that","for","any","number","of","wires","and","parameters",",","the","correct","size","and","values","are","computed"]
code: def test_different_sizes(self, n_wires, n_params):
      """Testing that for any number of wires and parameters, the correct size and values are computed"""
      dev = qml.device("default.qubit", wires=n_wires)
  
      @qml.qnode(dev)
      def circ(params):
          for i in range(n_wires):
              qml.Hadamard(wires=i)
  
          for x in params:
              for j in range(n_wires):
                  qml.RX(x, wires=j)
                  qml.RY(x, wires=j)
                  qml.RZ(x, wires=j)
  
          return qml.probs(wires=range(n_wires))
  
      params = pnp.zeros(n_params, requires_grad=True)
      res = classical_fisher(circ)(params)
      assert np.allclose(res, n_wires * np.ones((n_params, n_params)))
  
imports: import pytest
  import numpy
  import pennylane
  import pennylane.numpy
  from pennylane.qinfo import classical_fisher, quantum_fisher
  from pennylane.qinfo.transforms import _make_probs, _compute_cfim
label_desc: Use image node_id 1 for calling the TestIntegration obj's underlying member method code with example usage: obj.test_different_sizes(n_wires, n_params) and returns: qml