class_docstr: Tests for the probs_to_unitary function
docstr: Test if a ValueError is raised when a distribution that does not sum to one is input
docstr_tok: ["Test","if","a","ValueError","is","raised","when","a","distribution","that","does","not","sum","to","one","is","input"]
code: def test_invalid_distribution_sum_to_not_one(self):
      """Test if a ValueError is raised when a distribution that does not sum to one is input"""
      p = np.ones(4)
      with pytest.raises(
          ValueError,
          match="A valid probability distribution of non-negative",
      ):
          probs_to_unitary(p)
  
imports: import numpy
  import pytest
  from scipy.stats import norm
  import pennylane
  from pennylane.templates.subroutines.qmc import QuantumMonteCarlo, _make_V, _make_Z, func_to_unitary, make_Q, probs_to_unitary
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestProbsToUnitary obj's underlying member method code with example usage: obj.test_invalid_distribution_sum_to_not_one() without return types