class_docstr: Unit tests for the ``transmon_interaction`` function.
docstr: Test that a single callable qubit_freq with explicit wires yields the correct Hamiltonian
docstr_tok: ["Test","that","a","single","callable","qubit_freq","with","explicit","wires","yields","the","correct","Hamiltonian"]
code: def test_single_callable_qubit_freq_with_explicit_wires(self):
      """Test that a single callable qubit_freq with explicit wires yields the correct Hamiltonian"""
      wires0 = np.arange(10)
      coupling = 0.5
  
      H = qml.pulse.transmon_interaction(
          qubit_freq=np.polyval,
          connections=[[i, (i + 1) % 10] for i in wires0],
          coupling=coupling,
          wires=wires0,
      )
  
      g = 2 * np.pi * coupling
      omega = callable_freq_to_angular(np.polyval)
  
      assert qml.math.allclose(H.coeffs[:10], g)
      for coeff in H.coeffs[10:]:
          assert coeff([3, 4, 5], 6) == omega([3, 4, 5], 6)
      for o1, o2 in zip(
          H.ops[10:], [ad(i, 2) @ a(i, 2) for i in wires0]
      ):
          assert qml.equal(o1, o2)
  
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 5 for calling the TestTransmonInteraction obj's underlying member method code with example usage: obj.test_single_callable_qubit_freq_with_explicit_wires() without return types