class_docstr: Unit tests for the pwc function
class_docstr_tok: ["Unit","tests","for","the","pwc","function"]
docstr: Tests that requesting a value for the pwc function outside the defined window returns 0
docstr_tok: ["Tests","that","requesting","a","value","for","the","pwc","function","outside","the","defined","window","returns","0"]
code: def test_t_out_of_bounds_returns_0(self):
      """Tests that requesting a value for the pwc function outside the defined window returns 0"""
      f_pwc = qml.pulse.pwc(timespan=(1, 3))
      constants = np.linspace(0, 12, 13)
  
      assert f_pwc(constants, 1.5) != 0
      assert f_pwc(constants, 0) == 0
      assert f_pwc(constants, 4) == 0
  
imports: import inspect
  from functools import partial
  import numpy
  import pytest
  import pennylane
  from pennylane.pulse.parametrized_hamiltonian import ParametrizedHamiltonian
label_desc: Use image node_id 2 for calling the TestPWC obj's underlying member method code with example usage: obj.test_t_out_of_bounds_returns_0() without return types