class_docstr: Unit tests for the ``constant`` function.
class_docstr_tok: ["Unit","tests","for","the","``","constant","``","function","."]
docstr: Test that the callable returned by the ``constant`` function is jittable.
docstr_tok: ["Test","that","the","callable","returned","by","the","``","constant","``","function","is","jittable","."]
code: def test_constant_is_jittable(self):
      """Test that the callable returned by the ``constant`` function is jittable."""
      import jax
  
      c = jax.jit(qml.pulse.constant)
  
      scalar = 1.23
      times = np.arange(0, 10, step=1e-2)
      for t in times:
          assert c(scalar, time=t) == scalar
  
imports: import inspect
  from functools import reduce
  import numpy
  import pytest
  import pennylane
  from pennylane.pulse import ParametrizedHamiltonian
label_desc: Use image node_id 3 for calling the TestConstant obj's underlying member method code with example usage: obj.test_constant_is_jittable() without return types