class_docstr: Unittests for the dot function when ``pauli=False``.
docstr: Test that the dot function returns a Sum operator when ``pauli=False``.
docstr_tok: ["Test","that","the","dot","function","returns","a","Sum","operator","when","``","pauli=False","``","."]
code: def test_dot_returns_sum(self):
      """Test that the dot function returns a Sum operator when ``pauli=False``."""
      c = [1.0, 2.0, 3.0]
      o = [qml.PauliX(0), qml.PauliY(1), qml.PauliZ(2)]
      S = qml.dot(coeffs=c, ops=o)
      assert isinstance(S, Sum)
      for summand, coeff in zip(S.operands, c):
          if coeff == 1:
              assert isinstance(summand, qml.PauliX)
          else:
              assert isinstance(summand, SProd)
              assert summand.scalar == coeff
  
imports: import pytest
  import pennylane
  from pennylane.ops import Hamiltonian, Prod, SProd, Sum
  from pennylane.pauli.pauli_arithmetic import PauliSentence
label_desc: Use image node_id 1 for calling the TestDotSum obj's underlying member method code with example usage: obj.test_dot_returns_sum() without return types