class_docstr: Test that arithmetic operations involving or creating ParametrizedHamiltonians behave as expected
docstr: Test a ParametrizedHamiltonian can be created by multiplying a
  function and an Observable
docstr_tok: ["Test","a","ParametrizedHamiltonian","can","be","created","by","multiplying","a","function","and","an","Observable"]
code: def test_fn_times_observable_creates_parametrized_hamiltonian(self):
      """Test a ParametrizedHamiltonian can be created by multiplying a
      function and an Observable"""
      pH = f1 * qml.PauliX(0)
      assert isinstance(pH, ParametrizedHamiltonian)
      assert len(pH.coeffs_fixed) == 0
      assert isinstance(pH.H_parametrized(param, 0.5), qml.ops.SProd)
  
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 7 for calling the TestInteractionWithOperators obj's underlying member method code with example usage: obj.test_fn_times_observable_creates_parametrized_hamiltonian() without return types