class_docstr: Unit tests for the ``HardwarePulse`` class.
class_docstr_tok: ["Unit","tests","for","the","``","HardwarePulse","``","class","."]
docstr: Test the ``__eq__`` method of the ``HardwarePulse`` class.
docstr_tok: ["Test","the","``","__eq__","``","method","of","the","``","HardwarePulse","``","class","."]
code: def test_equal(self):
      """Test the ``__eq__`` method of the ``HardwarePulse`` class."""
      p1 = HardwarePulse(1, 2, 3, [0, 1])
      p2 = HardwarePulse(1, 2, 3, 0)
      p3 = HardwarePulse(1, 2, 3, [0, 1])
      assert p1 != p2
      assert p2 != p3
      assert p1 == p3
  
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 2 for calling the TestHardwarePulse obj's underlying member method code with example usage: obj.test_equal() without return types