code: def max_entangled_circuit(wires, shots=10000, interface="autograd"):
      """maximally entangled state preparation circuit"""
      dev = qml.device("default.qubit", wires=wires, shots=shots)
  
      @qml.qnode(dev, interface=interface)
      def circuit():
          qml.Hadamard(wires=0)
          for i in range(1, wires):
              qml.CNOT(wires=[0, i])
          return qml.classical_shadow(wires=range(wires))
  
      return circuit
  
imports: from functools import partial
  import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.shadows.transforms import _replace_obs
label_desc: Use image node_id 2 for calling a global function with example usage: max_entangled_circuit(wires, shots, interface) and returns: circuit, qml