class_docstr: Unit tests for the pwc function
class_docstr_tok: ["Unit","tests","for","the","pwc","function"]
docstr: Test the pwc function contains bins matching the array of constants passed as params
docstr_tok: ["Test","the","pwc","function","contains","bins","matching","the","array","of","constants","passed","as","params"]
code: def test_bins_match_params_array(self):
      """Test the pwc function contains bins matching the array of constants passed as params"""
      f_pwc = qml.pulse.pwc(timespan=(1, 3))
      constants = np.linspace(0, 12, 13)
  
      y = [float(f_pwc(constants, i)) for i in np.linspace(1, 3, 100)]
      assert set(y) == set(constants)
  
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 3 for calling the TestPWC obj's underlying member method code with example usage: obj.test_bins_match_params_array() without return types