docstr: Test that the ctrl is correctly taken into account
docstr_tok: ["Test","that","the","ctrl","is","correctly","taken","into","account"]
code: def test_ctrl(self):
      """Test that the ctrl is correctly taken into account"""
      res = qml.eigvals(qml.ctrl(qml.PauliX, 0))(wires=1)
      expected = np.linalg.eigvals(qml.matrix(qml.CNOT(wires=[0, 1])))
      assert np.allclose(np.sort(res), np.sort(expected))
  
imports: from functools import reduce
  import pytest
  import scipy
  from gate_data import CNOT, H, I, S, X, Y, Z
  import pennylane
  from pennylane import numpy
  from pennylane.transforms.op_transforms import OperationTransformError
label_desc: Use image node_id 8 for calling the TestSingleOperation obj's underlying member method code with example usage: obj.test_ctrl() without return types