code: def circuit_decomposed(weights):
      wires = range(4)
      qwires = [
          wires[i : i + 4]
          for i in range(0, len(wires), 4)
          if len(wires[i : i + 4]) == 4
      ]
      if len(wires) > 4:
          qwires += [
              wires[i : i + 4]
              for i in range(2, len(wires), 4)
              if len(wires[i : i + 4]) == 4
          ]
      qml.BasisState(qml.math.array([1, 1, 0, 0]), wires=wires)
      include_pi_param = qml.math.array(
          np.pi, like=qml.math.get_interface(*weights)
      )
      for layer in range(weights.shape[0]):
          for idx in range(weights.shape[1]):
              qml.OrbitalRotation.compute_decomposition(
                  include_pi_param, wires=qwires[idx]
              )
              qml.DoubleExcitation.compute_decomposition(
                  weights[layer][idx][0], wires=qwires[idx]
              )
              qml.OrbitalRotation.compute_decomposition(
                  weights[layer][idx][1], wires=qwires[idx]
              )
  
      return qml.expval(qml.PauliZ(0))
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: circuit_decomposed(weights) and returns: qml