class_docstr: Test to check that the iterative quantum phase estimation function works as expected.
class_docstr_tok: ["Test","to","check","that","the","iterative","quantum","phase","estimation","function","works","as","expected","."]
docstr: Test to check that the size of the returned list is correct
docstr_tok: ["Test","to","check","that","the","size","of","the","returned","list","is","correct"]
code: def test_size_return(self, iters):
      """Test to check that the size of the returned list is correct"""
  
      dev = qml.device("default.qubit", shots=1)
  
      @qml.qnode(dev)
      def circuit():
          m = qml.iterative_qpe(
              qml.RZ(1.0, wires=[0]), [1], iters=iters
          )
          return [qml.sample(op=meas) for meas in m]
  
      assert len(circuit()) == iters
  
file_path: pennylane/tests/ops/functions/test_iterative_qpe.py
imports: import pytest
  import numpy
  import pennylane
label_desc: Use image node_id 5 for calling the TestIQPE obj's underlying member method code with example usage: obj.test_size_return(iters) and returns: unknown