class_docstr: Tests for the IntegerComparator
docstr: Test operator's ``compute_decomposition()`` method when ``value`` is such that
  decomposition is the identity matrix.
docstr_tok: ["Test","operator","'s","``","compute_decomposition","(",")","``","method","when","``","value","``","is","such","that","decomposition","is","the","identity","matrix","."]
code: def test_decomposition_extraneous_value(self):
      """Test operator's ``compute_decomposition()`` method when ``value`` is such that
      decomposition is the identity matrix."""
  
      with qml.queuing.AnnotatedQueue() as q1:
          qml.IntegerComparator.compute_decomposition(
              10, wires=[0, 1, 2]
          )
      tape1 = qml.tape.QuantumScript.from_queue(q1)
      assert all(
          isinstance(op, qml.Identity) for op in tape1.operations
      )
  
      with qml.queuing.AnnotatedQueue() as q2:
          qml.IntegerComparator.compute_decomposition(
              0, wires=[0, 1, 2], geq=False
          )
      tape2 = qml.tape.QuantumScript.from_queue(q2)
      assert all(
          isinstance(op, qml.Identity) for op in tape2.operations
      )
  
imports: import copy
  import itertools
  import pytest
  import numpy
  import pennylane
  from pennylane.wires import Wires
label_desc: Use image node_id 13 for calling the TestIntegerComparator obj's underlying member method code with example usage: obj.test_decomposition_extraneous_value() without return types