class_docstr: Tests for applying projectors as operations.
docstr: Test that a state with nan values is returned if the probability of a postselection state
  is 0.
docstr_tok: ["Test","that","a","state","with","nan","values","is","returned","if","the","probability","of","a","postselection","state","is","0","."]
code: def test_nan_state(self, interface):
      """Test that a state with nan values is returned if the probability of a postselection state
      is 0."""
      tape = qml.tape.QuantumScript(
          [qml.PauliX(0), qml.Projector([0], 0)]
      )
  
      res, _ = get_final_state(tape, interface=interface)
      assert qml.math.all(qml.math.isnan(res))
  
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 3 for calling the TestPostselection obj's underlying member method code with example usage: obj.test_nan_state(interface) without return types