class_docstr: Testing that given p and dp, _compute_cfim() computes the correct outputs
class_docstr_tok: ["Testing","that","given","p","and","dp",",","_compute_cfim","(",")","computes","the","correct","outputs"]
docstr: Test that the construction in _compute_cfim is correct
docstr_tok: ["Test","that","the","construction","in","_compute_cfim","is","correct"]
code: def test_construction_of_compute_cfim(self, n_params, n_wires):
      """Test that the construction in _compute_cfim is correct"""
      dp = np.arange(2**n_wires * n_params, dtype=float).reshape(
          2**n_wires, n_params
      )
      p = np.ones(2**n_wires)
  
      res = _compute_cfim(p, dp)
  
      assert np.allclose(res, res.T)
      assert all(
          res[i, j] == np.sum(dp[:, i] * dp[:, j] / p)
          for i in range(n_params)
          for j in range(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 TestComputeclassicalFisher obj's underlying member method code with example usage: obj.test_construction_of_compute_cfim(n_params, n_wires) without return types