class_docstr: Tests for applying projectors as operations.
docstr: Test that the norm of the state is maintained after applying a projector
docstr_tok: ["Test","that","the","norm","of","the","state","is","maintained","after","applying","a","projector"]
code: def test_projector_norm(self):
      """Test that the norm of the state is maintained after applying a projector"""
      tape = qml.tape.QuantumScript(
          [
              qml.PauliX(0),
              qml.RX(0.123, 1),
              qml.Projector([0], wires=1),
          ],
          [qml.state()],
      )
      res = simulate(tape)
      assert np.isclose(np.linalg.norm(res), 1.0)
  
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 1 for calling the TestPostselection obj's underlying member method code with example usage: obj.test_projector_norm() without return types