From f0b19f7bee8df9ddf00fb72f6879073904dccbe1 Mon Sep 17 00:00:00 2001 From: Michael Robinson Date: Fri, 26 Jul 2024 18:14:28 -0400 Subject: [PATCH] Comments adjusted --- pysheaf/pysheaf.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pysheaf/pysheaf.py b/pysheaf/pysheaf.py index 0768bf9..de8de74 100644 --- a/pysheaf/pysheaf.py +++ b/pysheaf/pysheaf.py @@ -698,13 +698,18 @@ def from_netlist(self, netlist, **kwargs): "bounds" : "[(0,1)]*2", "ports" : { "IN1" : "lambda x: x[0]", "IN2" : "lambda x: x[1]", - "OUT" : "lambda x: x[0]*x[1]" }, - "connections" : [ - { "part" : "AND1", + "OUT" : "lambda x: x[0]*x[1]" }}, +... + "A": { + "data_dimension" : 1, + "bounds" : "[(0,1)]", + "connections" : [ + { "part" : "AND2", "port" : "IN1"} - ] - } + ] + }, ...} + ``` > [!TIP] > The default behavior is that all cells created are optimization cells unless specified by the `optimize` flag.