Skip to content

Commit

Permalink
Deploying to gh-pages from @ 685e7db 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
qpavsmi committed Oct 4, 2023
1 parent 950313e commit f1258ab
Show file tree
Hide file tree
Showing 17 changed files with 298 additions and 113 deletions.
5 changes: 4 additions & 1 deletion _modules/kqcircuits/chips/quality_factor_twoface.html
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@ <h1>Source code for kqcircuits.chips.quality_factor_twoface</h1><div class="high
<span class="n">waveguide_indentation</span> <span class="o">=</span> <span class="n">Param</span><span class="p">(</span><span class="n">pdt</span><span class="o">.</span><span class="n">TypeDouble</span><span class="p">,</span> <span class="s2">&quot;Waveguide indentation from top chip edge&quot;</span><span class="p">,</span> <span class="mi">500</span><span class="p">)</span>
<span class="n">extra_resonator_avoidance</span> <span class="o">=</span> <span class="n">Param</span><span class="p">(</span><span class="n">pdt</span><span class="o">.</span><span class="n">TypeList</span><span class="p">,</span> <span class="s2">&quot;Added avoidance&quot;</span><span class="p">,</span> <span class="p">[</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">],</span> <span class="n">unit</span><span class="o">=</span><span class="s2">&quot;[μm]&quot;</span><span class="p">,</span>
<span class="n">docstring</span><span class="o">=</span><span class="s2">&quot;Added avoidance around resonators [μm]&quot;</span><span class="p">)</span>
<span class="n">etch_opposite_face_margin</span> <span class="o">=</span> <span class="n">Param</span><span class="p">(</span><span class="n">pdt</span><span class="o">.</span><span class="n">TypeDouble</span><span class="p">,</span> <span class="s2">&quot;Margin around the waveguide to etch on the opposite face &quot;</span> <span class="o">+</span>
<span class="s2">&quot;for &#39;etched&#39; type resonators&quot;</span><span class="p">,</span> <span class="mi">5</span><span class="p">)</span>

<div class="viewcode-block" id="QualityFactorTwoface.build"><a class="viewcode-back" href="../../../api/kqcircuits.chips.quality_factor_twoface.html#kqcircuits.chips.quality_factor_twoface.QualityFactorTwoface.build">[docs]</a> <span class="k">def</span> <span class="nf">build</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_produce_resonators</span><span class="p">()</span></div>
Expand Down Expand Up @@ -686,7 +688,7 @@ <h1>Source code for kqcircuits.chips.quality_factor_twoface</h1><div class="high
<span class="n">res_params</span> <span class="o">=</span> <span class="p">{</span>
<span class="s2">&quot;airbridge_type&quot;</span><span class="p">:</span> <span class="s2">&quot;Airbridge Multi Face&quot;</span><span class="p">,</span>
<span class="s2">&quot;include_bumps&quot;</span><span class="p">:</span> <span class="kc">False</span><span class="p">,</span>
<span class="s2">&quot;bridge_length&quot;</span><span class="p">:</span> <span class="n">a</span> <span class="o">+</span> <span class="mi">2</span> <span class="o">*</span> <span class="p">(</span><span class="n">b</span> <span class="o">+</span> <span class="bp">self</span><span class="o">.</span><span class="n">margin</span> <span class="o">+</span> <span class="n">extra_resonator_avoidance</span><span class="p">),</span>
<span class="s2">&quot;bridge_length&quot;</span><span class="p">:</span> <span class="n">a</span> <span class="o">+</span> <span class="mi">2</span> <span class="o">*</span> <span class="p">(</span><span class="n">b</span> <span class="o">+</span> <span class="bp">self</span><span class="o">.</span><span class="n">etch_opposite_face_margin</span> <span class="o">+</span> <span class="n">extra_resonator_avoidance</span><span class="p">),</span>
<span class="s2">&quot;bridge_width&quot;</span><span class="p">:</span> <span class="mi">2</span><span class="p">,</span>
<span class="s2">&quot;pad_length&quot;</span><span class="p">:</span> <span class="mi">2</span><span class="p">,</span>
<span class="s2">&quot;bridge_spacing&quot;</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">bridge_spacing</span><span class="p">,</span>
Expand Down Expand Up @@ -721,6 +723,7 @@ <h1>Source code for kqcircuits.chips.quality_factor_twoface</h1><div class="high
<span class="n">l0</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">get_layer</span><span class="p">(</span><span class="s2">&quot;ground_grid_avoidance&quot;</span><span class="p">,</span> <span class="nb">int</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">resonator_faces</span><span class="p">[</span><span class="mi">0</span><span class="p">]))</span>
<span class="n">region</span> <span class="o">=</span> <span class="n">pya</span><span class="o">.</span><span class="n">Region</span><span class="p">(</span><span class="n">inst_res</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">begin_shapes_rec</span><span class="p">(</span><span class="n">l0</span><span class="p">))</span><span class="o">.</span><span class="n">transformed</span><span class="p">(</span><span class="n">inst_res</span><span class="o">.</span><span class="n">trans</span><span class="p">)</span>
<span class="n">region</span> <span class="o">+=</span> <span class="n">pya</span><span class="o">.</span><span class="n">Region</span><span class="p">(</span><span class="n">inst_cplr</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">begin_shapes_rec</span><span class="p">(</span><span class="n">l0</span><span class="p">))</span><span class="o">.</span><span class="n">transformed</span><span class="p">(</span><span class="n">inst_cplr</span><span class="o">.</span><span class="n">trans</span><span class="p">)</span>
<span class="n">region</span> <span class="o">=</span> <span class="n">region</span><span class="o">.</span><span class="n">sized</span><span class="p">((</span><span class="bp">self</span><span class="o">.</span><span class="n">etch_opposite_face_margin</span> <span class="o">-</span> <span class="bp">self</span><span class="o">.</span><span class="n">margin</span><span class="p">)</span> <span class="o">/</span> <span class="bp">self</span><span class="o">.</span><span class="n">layout</span><span class="o">.</span><span class="n">dbu</span><span class="p">)</span>
<span class="n">protection_region</span> <span class="o">=</span> <span class="n">region</span><span class="o">.</span><span class="n">sized</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">margin</span> <span class="o">/</span> <span class="bp">self</span><span class="o">.</span><span class="n">layout</span><span class="o">.</span><span class="n">dbu</span><span class="p">)</span>
<span class="n">opposite_face</span> <span class="o">=</span> <span class="nb">int</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">resonator_faces</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span>
<span class="bp">self</span><span class="o">.</span><span class="n">cell</span><span class="o">.</span><span class="n">shapes</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">get_layer</span><span class="p">(</span><span class="s2">&quot;ground_grid_avoidance&quot;</span><span class="p">,</span> <span class="n">opposite_face</span><span class="p">))</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">protection_region</span><span class="p">)</span>
Expand Down
11 changes: 10 additions & 1 deletion _modules/kqcircuits/masks/mask_export.html
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,7 @@ <h1>Source code for kqcircuits.masks.mask_export</h1><div class="highlight"><pre
<span class="kn">import</span> <span class="nn">subprocess</span>
<span class="kn">from</span> <span class="nn">importlib</span> <span class="kn">import</span> <span class="n">import_module</span>
<span class="kn">from</span> <span class="nn">math</span> <span class="kn">import</span> <span class="n">pi</span>
<span class="kn">import</span> <span class="nn">csv</span>

<span class="kn">from</span> <span class="nn">autologging</span> <span class="kn">import</span> <span class="n">logged</span>

Expand Down Expand Up @@ -833,8 +834,16 @@ <h1>Source code for kqcircuits.masks.mask_export</h1><div class="highlight"><pre
<span class="k">if</span> <span class="n">file_name</span><span class="o">.</span><span class="n">endswith</span><span class="p">(</span><span class="s2">&quot;.png&quot;</span><span class="p">):</span>
<span class="n">f</span><span class="o">.</span><span class="n">write</span><span class="p">(</span><span class="s2">&quot;+ [</span><span class="si">{}</span><span class="s2">](</span><span class="si">{}</span><span class="s2">)</span><span class="se">\n</span><span class="s2">&quot;</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="n">file_name</span><span class="p">,</span> <span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="n">mask_layout_str</span><span class="p">,</span> <span class="n">file_name</span><span class="p">)))</span>

<span class="n">f</span><span class="o">.</span><span class="n">close</span><span class="p">()</span></div>
<span class="n">f</span><span class="o">.</span><span class="n">close</span><span class="p">()</span>

<span class="k">for</span> <span class="n">mask_layout</span> <span class="ow">in</span> <span class="n">mask_set</span><span class="o">.</span><span class="n">mask_layouts</span><span class="p">:</span>
<span class="n">mask_layout_str</span> <span class="o">=</span> <span class="n">_get_mask_layout_full_name</span><span class="p">(</span><span class="n">mask_set</span><span class="p">,</span> <span class="n">mask_layout</span><span class="p">)</span>
<span class="n">chips_map_file_name</span> <span class="o">=</span> <span class="n">mask_set</span><span class="o">.</span><span class="n">_mask_set_dir</span> <span class="o">/</span> <span class="n">mask_layout_str</span> <span class="o">/</span> <span class="sa">f</span><span class="s2">&quot;</span><span class="si">{</span><span class="n">mask_layout_str</span><span class="si">}</span><span class="s2">-chips_map.csv&quot;</span>
<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">chips_map_file_name</span><span class="p">,</span> <span class="s2">&quot;w+&quot;</span><span class="p">,</span> <span class="n">encoding</span><span class="o">=</span><span class="s2">&quot;utf-8&quot;</span><span class="p">,</span> <span class="n">newline</span><span class="o">=</span><span class="s2">&quot;&quot;</span><span class="p">)</span> <span class="k">as</span> <span class="n">g</span><span class="p">:</span>
<span class="n">writer</span> <span class="o">=</span> <span class="n">csv</span><span class="o">.</span><span class="n">writer</span><span class="p">(</span><span class="n">g</span><span class="p">)</span>
<span class="n">writer</span><span class="o">.</span><span class="n">writerows</span><span class="p">(</span>
<span class="p">[[</span><span class="s1">&#39;x&#39;</span><span class="p">,</span> <span class="s1">&#39;y&#39;</span><span class="p">,</span> <span class="s1">&#39;Active/Inactive&#39;</span><span class="p">,</span> <span class="s1">&#39;pixel id&#39;</span><span class="p">,</span> <span class="s1">&#39;pixel type&#39;</span><span class="p">]]</span> <span class="o">+</span> <span class="n">mask_layout</span><span class="o">.</span><span class="n">chip_array_to_export</span><span class="p">)</span>
<span class="n">g</span><span class="o">.</span><span class="n">close</span><span class="p">()</span></div>

<div class="viewcode-block" id="export_bitmaps"><a class="viewcode-back" href="../../../api/kqcircuits.masks.mask_export.html#kqcircuits.masks.mask_export.export_bitmaps">[docs]</a><span class="nd">@logged</span>
<span class="k">def</span> <span class="nf">export_bitmaps</span><span class="p">(</span><span class="n">mask_set</span><span class="p">,</span> <span class="n">spec_layers</span><span class="o">=</span><span class="n">mask_bitmap_export_layers</span><span class="p">):</span>
Expand Down
Loading

0 comments on commit f1258ab

Please sign in to comment.