class_docstr: Test ``qml.qjit`` with Catalyst's control-flow operations
class_docstr_tok: ["Test","``","qml.qjit","``","with","Catalyst","'s","control-flow","operations"]
docstr: Test nested while loops.
docstr_tok: ["Test","nested","while","loops","."]
code: def test_nested_while_loops(self):
      """Test nested while loops."""
      dev = qml.device("lightning.qubit", wires=1)
  
      @qml.qjit
      @qml.qnode(dev)
      def circuit(n, m):
          @qml.while_loop(lambda i, _: i < n)
          def outer(i, sm):
              @qml.while_loop(lambda j: j < m)
              def inner(j):
                  return j + 1
  
              return i + 1, sm + inner(0)
  
          return outer(0, 0)[1]
  
      assert circuit(5, 6) == 30  # 5 * 6
      assert circuit(4, 7) == 28
  
imports: from unittest.mock import patch
  import pytest
  import pennylane
  from pennylane.compiler.compiler import CompileError
  from pennylane import numpy
  from jax import numpy
  from jax.core import ShapedArray
label_desc: Use image node_id 2 for calling the TestCatalystControlFlow obj's underlying member method code with example usage: obj.test_nested_while_loops() and returns: outer, unknown,  unknown, unknown