class_docstr: Unit tests for operations supported by the default.mixed.autograd device
class_docstr_tok: ["Unit","tests","for","operations","supported","by","the","default.mixed.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(self, mocker):
      """Test applying a state vector to the full subsystem"""
      dev = DefaultMixed(wires=["a", "b", "c"])
      state = np.array([1, 0, 0, 0, 1, 0, 1, 1]) / 2.0
      state_wires = qml.wires.Wires(["a", "b", "c"])
  
      spy = mocker.spy(qml.math, "scatter")
      dev._apply_state_vector(state=state, device_wires=state_wires)
  
      state = np.outer(state, np.conj(state))
  
      assert np.all(dev._state.flatten() == state.flatten())
      spy.assert_not_called()
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.devices.default_mixed import DefaultMixed
  from pennylane import DeviceError
label_desc: Use image node_id 2 for calling the TestOps obj's underlying member method code with example usage: obj.test_full_subsystem(mocker) without return types