class_docstr: Unit tests for TransmonSettings dataclass
docstr: Test that two settings are correctly added when one has non-trivial anharmonicity
docstr_tok: ["Test","that","two","settings","are","correctly","added","when","one","has","non-trivial","anharmonicity"]
code: def test_add_two_settings_with_one_anharmonicity_None(
      self,
  ):
      """Test that two settings are correctly added when one has non-trivial anharmonicity"""
      anharmonicity = [1.0] * len(qubit_freq0)
      settings0 = TransmonSettings(
          connections0, qubit_freq0, g0, anharmonicity=anharmonicity
      )
      settings1 = TransmonSettings(
          connections1, qubit_freq1, g1, [0.0] * len(qubit_freq1)
      )
  
      settings01 = settings0 + settings1
      assert settings01.anharmonicity == anharmonicity + [0.0] * len(
          qubit_freq1
      )
  
      settings10 = settings1 + settings0
      assert (
          settings10.anharmonicity
          == [0.0] * len(qubit_freq0) + anharmonicity
      )
  
imports: import numpy
  import pytest
  import pennylane
  from pennylane.pulse import HardwareHamiltonian, transmon_interaction, transmon_drive
  from pennylane.pulse.transmon import TransmonSettings, a, ad, AmplitudeAndPhaseAndFreq, _reorder_AmpPhaseFreq, callable_freq_to_angular
  from pennylane.pulse.hardware_hamiltonian import HardwarePulse
  from pennylane.wires import Wires
label_desc: Use image node_id 4 for calling the TestTransmonSettings obj's underlying member method code with example usage: obj.test_add_two_settings_with_one_anharmonicity_None() without return types