class_docstr: Jax pytree class that represents a ``ParametrizedHamiltonian``.
class_docstr_tok: ["Jax","pytree","class","that","represents","a","``","ParametrizedHamiltonian","``","."]
code: def __call__(self, pars, t):
      if self.mat_fixed is not None:
          ops = (self.mat_fixed,)
          coeffs = (1,)
      else:
          ops = ()
          coeffs = ()
  
      if self.reorder_fn:
          pars = self.reorder_fn(pars, self.coeffs_parametrized)
      coeffs = coeffs + tuple(
          f(p, t) for f, p in zip(self.coeffs_parametrized, pars)
      )
      return LazyDotPytree(coeffs, ops + self.mats_parametrized)
  
file_path: pennylane/pennylane/pulse/parametrized_hamiltonian_pytree.py
imports: from dataclasses import dataclass
  from typing import Callable, Optional, Tuple, Union
  import jax
  import jax.numpy
  from jax.experimental import sparse
  from jax.tree_util import register_pytree_node_class
  import pennylane
  from .parametrized_hamiltonian import ParametrizedHamiltonian
  from .hardware_hamiltonian import HardwareHamiltonian
label_desc: Use image node_id 2 for calling the ParametrizedHamiltonianPytree obj's underlying member method code with example usage: obj.__call__(pars, t) and returns: LazyDotPytree