class_docstr: Unit tests for TransmonSettings dataclass
docstr: Raises error when attempting to add two non-trivial RydbergSettings
docstr_tok: ["Raises","error","when","attempting","to","add","two","non-trivial","RydbergSettings"]
code: def test_raises_error_two_interaction_terms(
      self,
  ):
      """Raises error when attempting to add two non-trivial RydbergSettings"""
      settings0 = RydbergSettings(register0)
      settings1 = RydbergSettings(register1)
      with pytest.raises(ValueError, match="Cannot add two"):
          res = settings0 + settings1
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.pulse import rydberg_interaction, rydberg_drive
  from pennylane.pulse.hardware_hamiltonian import HardwareHamiltonian, HardwarePulse, AmplitudeAndPhase
  from pennylane.wires import Wires
  from pennylane.pulse.rydberg import RydbergSettings
label_desc: Use image node_id 4 for calling the TestRydbergSettings obj's underlying member method code with example usage: obj.test_raises_error_two_interaction_terms() without return types