class_docstr: Unit tests for the ``qml.vn_entropy`` function.
class_docstr_tok: ["Unit","tests","for","the","``","qml.vn_entropy","``","function","."]
docstr: Tests the output of qml.vn_entropy
docstr_tok: ["Tests","the","output","of","qml.vn_entropy"]
code: def test_vn_entropy(self, interface, state_vector, expected):
      """Tests the output of qml.vn_entropy"""
      dev = qml.device("default.qubit", wires=2)
  
      @qml.qnode(dev, interface=interface)
      def circuit():
          qml.StatePrep(state_vector, wires=[0, 1])
          return qml.vn_entropy(wires=0)
  
      assert qml.math.allclose(circuit(), expected)
  
imports: import copy
  import numpy
  import pytest
  import pennylane
  from pennylane.measurements import VnEntropy, Shots
  from pennylane.measurements.vn_entropy import VnEntropyMP
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestInitialization obj's underlying member method code with example usage: obj.test_vn_entropy(interface, state_vector, expected) and returns: qml