class_docstr: Test initialization of the ParametrizedHamiltonian class
docstr: Test that using qml.dot initializes a ParametrizedHamiltonian
docstr_tok: ["Test","that","using","qml.dot","initializes","a","ParametrizedHamiltonian"]
code: def test_initialization_via_dot(self):
      """Test that using qml.dot initializes a ParametrizedHamiltonian"""
  
      XX = qml.PauliX(0) @ qml.PauliX(1)
      YY = qml.PauliY(0) @ qml.PauliY(1)
      ZZ = qml.PauliZ(0) @ qml.PauliZ(1)
  
      coeffs = [2, f1, f2]
      ops = [XX, YY, ZZ]
  
      H = qml.dot(coeffs, ops)
      expected_H = ParametrizedHamiltonian(coeffs, ops)
  
      assert qml.equal(H([1.2, 2.3], 3.4), expected_H([1.2, 2.3], 3.4))
  
imports: import pytest
  import pennylane
  from pennylane import numpy
  from pennylane.pulse import ParametrizedHamiltonian
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestInitialization obj's underlying member method code with example usage: obj.test_initialization_via_dot() without return types