,</span> <span class="n">action</span> <span class="ow">in</span> <span class="n">term</span> <span class="k">if</span> <span class="n">action</span> <span class="o">!=</span> <span class="s1">&#39;Z&#39;</span><span class="p">}</span>
                <span class="n">RigettiTools</span><span class="o">.</span><span class="n">add_xy_meas_coda_to_program</span><span class="p">(</span>
                    <span class="n">pg</span><span class="p">,</span> <span class="n">bit_pos_to_xy_str</span><span class="p">