class_docstr: Unit tests for the ``HardwarePulse`` class.
class_docstr_tok: ["Unit","tests","for","the","``","HardwarePulse","``","class","."]
docstr: Test the initialization of the ``HardwarePulse`` class.
docstr_tok: ["Test","the","initialization","of","the","``","HardwarePulse","``","class","."]
code: def test_init(self):
      """Test the initialization of the ``HardwarePulse`` class."""
      p = HardwarePulse(
          amplitude=4, phase=8, frequency=3, wires=[0, 4, 7]
      )
      assert p.amplitude == 4
      assert p.phase == 8
      assert p.frequency == 3
      assert p.wires == Wires([0, 4, 7])
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.pulse import HardwareHamiltonian, drive, rydberg_interaction
  from pennylane.pulse.hardware_hamiltonian import HardwarePulse, AmplitudeAndPhase, amplitude_and_phase, _reorder_parameters
  from pennylane.pulse.transmon import TransmonSettings
  from pennylane.pulse.rydberg import RydbergSettings
  from pennylane.wires import Wires
label_desc: Use image node_id 1 for calling the TestHardwarePulse obj's underlying member method code with example usage: obj.test_init() without return types