RouteStraight

class RouteStraight(design, name: str | None = None, options: Dict | None = None, type: str = 'CPW', **kwargs)[source]

Draw a straight Route connecting two pins.

Initializes all Routes.

Calls the QComponent __init__() to create a new Metal component. Before that, it adds the variables that are needed to support routing.

Parameters:
  • design (QDesign) – The parent design.

  • name (str) – Name of the component. Auto-named if possible.

  • options (dict) – User options that will override the defaults. Defaults to None.

  • type (string) – Supports Route (single layer trace) and CPW (adds the gap around it). Defaults to “CPW”.

Attributes

RouteStraight.TOOLTIP

RouteStraight.class_name

the full module name with the class name.

RouteStraight.component_metadata

Component metadata

RouteStraight.default_options

Default options

RouteStraight.design

Return a reference to the parent design object.

RouteStraight.id

The unique id of component within a design.

RouteStraight.length

Sum of all segments length, including the head.

RouteStraight.logger

The Qiskit Metal Logger.

RouteStraight.name

Name of the component.

RouteStraight.options

A dictionary of the component-designer-defined options.

RouteStraight.pin_names

The names of the pins.

RouteStraight.qgeometry_types

Get a list of the names of the element tables.

RouteStraight.pins

Dictionary of pins.

RouteStraight.metadata

Metadata allows a designer to store extra information or analysis results.

RouteStraight.status

Stores the latest status of the component.

Methods

RouteStraight.add_dependency(parent, child)

Add a dependency between one component and another.

RouteStraight.add_pin(name, points, width[, ...])

Adds a pin from two points which are normal/tangent to the intended plane of the pin.

RouteStraight.add_qgeometry(kind, geometry)

Add QGeometry.

RouteStraight.assign_direction_to_anchor(...)

Method to assign a direction to a point.

RouteStraight.connect_components_already_in_design(...)

WARNING: Do NOT use this method during generation of component instance.

RouteStraight.del_colinear_points(inarray)

Delete colinear points from the given array.

RouteStraight.delete()

Delete the QComponent.

RouteStraight.get_pin(name)

Interface for components to get pin data.

RouteStraight.get_points()

Assembles the list of points for the route by concatenating: head_pts + intermediate_pts, tail_pts.

RouteStraight.get_template_options(design[, ...])

Creates template options for the Metal Component class required for the class to function, based on the design template; i.e., be created, made, and rendered.

RouteStraight.get_tip()

Access the last element in the QRouteLead.

RouteStraight.get_unit_vectors(start, end[, ...])

Return the unit and target vector in which the CPW should process as its coordinate sys.

RouteStraight.length_excess_corner_rounding(points)

Computes how much length to deduce for compensating the fillet settings.

RouteStraight.make()

The make function implements the logic that creates the geometry (poly, path, etc.) from the qcomponent.options dictionary of parameters, and the adds them to the design, using qcomponent.add_qgeometry(...), adding in extra needed information, such as layer, subtract, etc.

RouteStraight.make_elements(pts)

Turns the CPW points into design elements, and add them to the design object.

RouteStraight.parse_options([options])

Parse the options, converting string into interpreted values.

RouteStraight.parse_value(value)

Parse a string, mappable (dict, Dict), iterable (list, tuple) to account for units conversion, some basic arithmetic, and design variables.

RouteStraight.populate_to_track_table_usage()

Use the element_handler to get a list of all the table names used in QGeometry.

RouteStraight.qgeometry_bounds()

Fetched the component bound dict_value.

RouteStraight.qgeometry_dict(element_type)

Returns a dict of element qgeometry (shapely geometry) of the component as a python dict, where the dict keys are the names of the qgeometry and the corresponding values are the shapely geometries.

RouteStraight.qgeometry_list([element_type])

Returns a list of element qgeometry (shapely geometry) of the component as a python list of shapely geometries.

RouteStraight.qgeometry_plot([ax, plot_kw])

Draw all the qgeometry of the component (polys and path etc.)

RouteStraight.qgeometry_table(element_type)

Returns the entire element table for the component.

RouteStraight.rebuild()

Builds the QComponent.

RouteStraight.set_lead(name)

Defines the lead_extension by adding a point to the self.head/tail.

RouteStraight.set_lead_extension(name)

Defines the jogged lead_extension by adding a series of turns to the self.head/tail.

RouteStraight.set_pin(name)

Defines the CPW pins and returns the pin coordinates and normal direction vector.

RouteStraight.to_script([thin, is_part_of_chip])

param thin:

If true then any key in the QComponent's options whose value