class_docstr: Unit tests for the ``transmon_interaction`` function.
docstr: Test that generated coefficients are correct for d>2
docstr_tok: ["Test","that","generated","coefficients","are","correct","for","d",">","2"]
code: def test_coeffs_d(self):
      """Test that generated coefficients are correct for d>2"""
      Hd2 = qml.pulse.transmon_interaction(
          qubit_freq=qubit_freq,
          connections=connections,
          coupling=coupling,
          wires=wires,
          anharmonicity=anharmonicity,
          d=3,
      )
      assert all(
          Hd2.coeffs
          == np.concatenate([qubit_freq, coupling, 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 3 for calling the TestTransmonInteraction obj's underlying member method code with example usage: obj.test_coeffs_d() without return types