diff --git a/docs/examples/04a_analogue_circuit_layout_simulation/04a_analogue_circuit_layout_simulation.py b/docs/examples/04a_analogue_circuit_layout_simulation/04a_analogue_circuit_layout_simulation.py index 25f4363b..6c37cd50 100644 --- a/docs/examples/04a_analogue_circuit_layout_simulation/04a_analogue_circuit_layout_simulation.py +++ b/docs/examples/04a_analogue_circuit_layout_simulation/04a_analogue_circuit_layout_simulation.py @@ -51,12 +51,9 @@ import hdl21 as h import gdsfactory as gf import piel -import sky130 import sky130_hdl21 from bokeh.io import output_notebook -from gdsfactory.config import rich_output -from gplugins.schematic_editor import SchematicEditor gf.config.rich_output() @@ -209,10 +206,9 @@ class SkyInv: """ import sys -from typing import Dict, Optional +from typing import Optional import hdl21 as h -from hdl21.prefix import ยต, n PdkResistor = sky130_hdl21.ress["GEN_PO"] Nch = sky130_hdl21.primitives.NMOS_1p8V_STD @@ -420,4 +416,3 @@ class MuxTree: # h.netlist(duts, sys.stdout, fmt="spectre") h.netlist(duts, sys.stdout, fmt="spice") # h.netlist(duts, sys.stdout, fmt="xyce") -# - diff --git a/docs/examples/05_quantum_integration_basics.py b/docs/examples/05_quantum_integration_basics.py index 499ec0a0..ac562391 100644 --- a/docs/examples/05_quantum_integration_basics.py +++ b/docs/examples/05_quantum_integration_basics.py @@ -5,10 +5,15 @@ # # One interesting thing to explore would be quantum state evolution through a unitary matrix composed from a physical photonic network that we could model. We will explore in this example how to integrate `sax` and `qutip`. -import gdsfactory as gf +from piel.models.physical.photonic import ( + component_lattice_generic, +) import sax import piel import qutip as qp +from gdsfactory.generic_tech import get_generic_pdk + +get_generic_pdk().activate() # ## Quantum Unitary Representation @@ -18,9 +23,8 @@ # ### Starting off from Composed Circuit -switch_circuit = gf.components.component_lattice_generic() -switch_circuit.show() -switch_circuit.plot_widget() +switch_circuit = component_lattice_generic() +switch_circuit.plot() # ![default_switch_circuit_plot_widget](../_static/img/examples/03_sax_basics/default_switch_circuit_plot_widget.PNG) @@ -69,8 +73,6 @@ # ### Translating to Qutip -import qutip - switch_circuit_qobj = piel.standard_s_parameters_to_qutip_qobj(unitary_matrix) switch_circuit_qobj