class_docstr: Tests for state vectors containing nan values.
docstr: Test that the result of circuits with 0 probability postselections is NaN with the
  expected shape.
docstr_tok: ["Test","that","the","result","of","circuits","with","0","probability","postselections","is","NaN","with","the","expected","shape","."]
code: def test_nan_probs(self, mp, interface):
      """Test that the result of circuits with 0 probability postselections is NaN with the
      expected shape."""
      state = qml.math.full((2, 2), np.NaN, like=interface)
      res = measure(mp, state, is_state_batched=False)
  
      assert qml.math.shape(res) == (2 ** len(mp.wires),)
      assert qml.math.all(qml.math.isnan(res))
      assert qml.math.get_interface(res) == interface
  
imports: import pytest
  import numpy
  from scipy.sparse import csr_matrix
  import pennylane
  from pennylane.devices.qubit import simulate
  from pennylane.devices.qubit.measure import measure, state_diagonalizing_gates, csr_dot_products, full_dot_products, get_measurement_function, sum_of_terms_method
label_desc: Use image node_id 3 for calling the TestNaNMeasurements obj's underlying member method code with example usage: obj.test_nan_probs(mp, interface) without return types