class_docstr: Unit tests for broadcasted operations supported by the default.qubit.autograd device
class_docstr_tok: ["Unit","tests","for","broadcasted","operations","supported","by","the","default.qubit.autograd","device"]
docstr: Test applying a state vector to the full subsystem
docstr_tok: ["Test","applying","a","state","vector","to","the","full","subsystem"]
code: def test_full_subsystem_broadcasted(self, mocker):
      """Test applying a state vector to the full subsystem"""
      dev = DefaultQubitAutograd(wires=["a", "b", "c"])
      state = (
          np.array([[1, 0, 0, 0, 1, 0, 1, 1], [0, 0, 0, 1, 1, 1, 1, 0]])
          / 2.0
      )
      state_wires = qml.wires.Wires(["a", "b", "c"])
  
      spy = mocker.spy(dev, "_scatter")
      dev._apply_state_vector(state=state, device_wires=state_wires)
  
      assert np.all(dev._state.reshape((2, 8)) == state)
      spy.assert_not_called()
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.devices.default_qubit_autograd import DefaultQubitAutograd
  from pennylane import DeviceError
label_desc: Use image node_id 2 for calling the TestOpsBroadcasted obj's underlying member method code with example usage: obj.test_full_subsystem_broadcasted(mocker) without return types