an> <span class="o">=</span> <span class="n">WavefunctionSimulator</span><span class="p">()</span>
                <span class="n">pg</span> <span class="o">=</span> <span class="n">Program</span><span class="p">()</span>
                <span class="c1"># don&#39;t know how to declare number of qubits</span>
                <span class="c1"># so do this</span>
                <span class="k">for</span> <span class="n">k</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span>