Skip to content

Commit

Permalink
just need to sort out the qutip situation
Browse files Browse the repository at this point in the history
  • Loading branch information
daquintero committed Jun 8, 2024
1 parent 5546a13 commit 0103aa8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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")
# -
14 changes: 8 additions & 6 deletions docs/examples/05_quantum_integration_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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)

Expand Down Expand Up @@ -69,8 +73,6 @@

# ### Translating to Qutip

import qutip

switch_circuit_qobj = piel.standard_s_parameters_to_qutip_qobj(unitary_matrix)
switch_circuit_qobj

Expand Down

0 comments on commit 0103aa8

Please sign in to comment.