class_docstr: Integration tests for the classical fisher information matrix CFIM
class_docstr_tok: ["Integration","tests","for","the","classical","fisher","information","matrix","CFIM"]
docstr: Integration test of classical_fisher() with tf for examples where all probabilities are all nonzero
docstr_tok: ["Integration","test","of","classical_fisher","(",")","with","tf","for","examples","where","all","probabilities","are","all","nonzero"]
code: def test_cfim_allnonzero_tf(self, n_wires):
      """Integration test of classical_fisher() with tf for examples where all probabilities are all nonzero"""
      import tensorflow as tf
  
      dev = qml.device("default.qubit", wires=n_wires)
  
      @qml.qnode(dev)
      def circ(params):
          for i in range(n_wires):
              qml.RX(params[0], wires=i)
          for i in range(n_wires):
              qml.RY(params[1], wires=i)
          return qml.probs(wires=range(n_wires))
  
      params = tf.Variable([np.pi / 4, np.pi / 4])
      cfim = classical_fisher(circ)(params)
      assert np.allclose(cfim, (n_wires / 3.0) * np.ones((2, 2)))
  
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 9 for calling the TestInterfacesClassicalFisher obj's underlying member method code with example usage: obj.test_cfim_allnonzero_tf(n_wires) and returns: qml