class_docstr: Tests for applying projectors as operations.
docstr: Test that postselecting a broadcasted state raises an error
docstr_tok: ["Test","that","postselecting","a","broadcasted","state","raises","an","error"]
code: def test_broadcasting_with_projector(self, shots):
      """Test that postselecting a broadcasted state raises an error"""
      tape = qml.tape.QuantumScript(
          [
              qml.RX([0.1, 0.2], 0),
              qml.Projector([0], wires=0),
          ],
          [qml.state()],
          shots=shots,
      )
  
      with pytest.raises(
          ValueError,
          match="Cannot postselect on circuits with broadcasting",
      ):
          _ = simulate(tape)
  
imports: import pytest
  import numpy
  import pennylane
  from pennylane.devices.qubit import simulate, get_final_state, measure_final_state
label_desc: Use image node_id 2 for calling the TestPostselection obj's underlying member method code with example usage: obj.test_broadcasting_with_projector(shots) without return types