kqcircuits.simulations.port

class kqcircuits.simulations.port.Port(number: int, resistance: float = 50, reactance: float = 0, inductance: float = 0, capacitance: float = 0, face: int = 0, junction: bool = False)[source]

Bases: object

Base data structure for simulation ports.

Depending on your simulation type, these produce excitations, set potentials, or act as ideal RLC lumped elements.

Parameters
  • number – Port number.

  • resistance – Real part of impedance. Given in Ohms (\(\Omega\)).

  • reactance – Imaginary part of impedance. Given in Ohms (\(\Omega\)).

  • inductance – Inductance of the element. Given in Henrys (\(\text{H}\)).

  • capacitance – Capacitance of the element. Given in Farads (\(\text{F}\)).

  • face – Integer-valued face index for the port.

  • junction – Whether this port models a SQUID/Junction. Used in EPR calculations.

as_dict()[source]

Returns attributes as a dictionary.

class kqcircuits.simulations.port.InternalPort(number: int, signal_location: klayout.dbcore.DPoint, ground_location: Optional[klayout.dbcore.DPoint] = None, resistance: float = 50, reactance: float = 0, inductance: float = 0, capacitance: float = 0, face: int = 0, junction: bool = False, signal_layer: str = 'signal')[source]

Bases: kqcircuits.simulations.port.Port

Data structure for ports inside the simulation area.

Parameters
  • number – Port number.

  • signal_location – Edge location for signal source.

  • ground_location – Edge location to connect signal to. Usually ground.

  • resistance – Real part of impedance. Given in Ohms (\(\Omega\)).

  • reactance – Imaginary part of impedance. Given in Ohms (\(\Omega\)).

  • inductance – Inductance of the element. Given in Henrys (\(\text{H}\)).

  • capacitance – Capacitance of the element. Given in Farads (\(\text{F}\)).

  • face – Integer-valued face index for the port.

  • junction – Whether this port models a SQUID/Junction. Used in EPR calculations.

  • signal_layer – Manual override for simulation signal layer. May be used to set ports across the ground layer with ground.

class kqcircuits.simulations.port.EdgePort(number: int, signal_location: klayout.dbcore.DPoint, resistance: float = 50, reactance: float = 0, inductance: float = 0, capacitance: float = 0, deembed_len: Optional[float] = None, face: int = 0, junction: bool = False)[source]

Bases: kqcircuits.simulations.port.Port

Data structure for ports at the edge of the simulation area.

Parameters
  • number – Port number.

  • signal_location – Edge location for signal source.

  • resistance – Real part of impedance. Given in Ohms (\(\Omega\)).

  • reactance – Imaginary part of impedance. Given in Ohms (\(\Omega\)).

  • inductance – Inductance of the element. Given in Henrys (\(\text{H}\)).

  • capacitance – Capacitance of the element. Given in Farads (\(\text{F}\)).

  • deembed_len – Port de-embedding length. Given in simulation units, usually microns (\(\text{um}\)).

  • face – Integer-valued face index for the port.

  • junction – Whether this port models a SQUID/Junction. Used in EPR calculations.

../_images/kqcircuits.simulations.port.png