class_docstr: Further unit tests for some new methods of QubitDevice.
class_docstr_tok: ["Further","unit","tests","for","some","new","methods","of","QubitDevice","."]
docstr: Test that entropy cannot be returned with custom wires.
docstr_tok: ["Test","that","entropy","can","not","be","returned","with","custom","wires","."]
code: def test_entropy_no_custom_wires(self):
      """Test that entropy cannot be returned with custom wires."""
  
      dev = qml.device("default.qubit.legacy", wires=["a", 1])
  
      with qml.queuing.AnnotatedQueue() as q:
          qml.PauliX(wires="a")
          qml.vn_entropy(wires=["a"])
  
      tape = qml.tape.QuantumScript.from_queue(q)
      with pytest.raises(
          qml.QuantumFunctionError,
          match="Returning the Von Neumann entropy is not supported when using custom wire labels",
      ):
          qml.execute(tapes=[tape], device=dev, gradient_fn=None)
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.measurements import MeasurementProcess
label_desc: Use image node_id 3 for calling the TestQubitDeviceNewUnits obj's underlying member method code with example usage: obj.test_entropy_no_custom_wires() without return types