CircleCaterpillar

class CircleCaterpillar(design: QDesign, name: str = None, options: Dict = None, make=True, component_template: Dict = None)[source]

A single configurable circle.

Inherits QComponent class.

../_images/CircleCaterpillar.png
Default Options:
  • segments: ‘5’

  • distance: ‘1.2’

  • radius: ‘300um’

  • resolution: ‘16’

  • cap_style: ‘round’ – Valid options are ‘round’, ‘flat’, ‘square’

  • subtract: ‘False’

  • helper: ‘False’

Create a new Metal component and adds it’s default_options to the design.

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.

  • make (bool) – True if the make function should be called at the end of the init. Options be used in the make function to create the geometry. Defaults to True.

  • component_template (dict) – User can overwrite the template options for the component that will be stored in the design, in design.template, and used every time a new component is instantiated. Defaults to None.

Raises:

ValueError – User supplied design isn’t a QDesign

Note: Information copied from QDesign class.

self._design.overwrite_enabled (bool): When True - If the string name, used for component, already exists in the design, the existing component will be deleted from design, and new component will be generated with the same name and newly generated component_id, and then added to design.

When False - If the string name, used for component, already exists in the design, the existing component will be kept in the design, and current component will not be generated, nor will be added to the design. The variable design.self.status will still be NotBuilt, as opposed to Initialization Successful.

Either True or False - If string name, used for component, is NOT being used in the design, a component will be generated and added to design using the name.

Attributes

CircleCaterpillar.TOOLTIP

CircleCaterpillar.class_name

the full module name with the class name.

CircleCaterpillar.component_metadata

Component metadata

CircleCaterpillar.default_options

Default drawing options

CircleCaterpillar.design

Return a reference to the parent design object.

CircleCaterpillar.id

The unique id of component within a design.

CircleCaterpillar.logger

The Qiskit Metal Logger.

CircleCaterpillar.name

Name of the component.

CircleCaterpillar.options

A dictionary of the component-designer-defined options.

CircleCaterpillar.pin_names

The names of the pins.

CircleCaterpillar.qgeometry_types

Get a list of the names of the element tables.

CircleCaterpillar.pins

Dictionary of pins.

CircleCaterpillar.metadata

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

CircleCaterpillar.status

Stores the latest status of the component.

Methods

CircleCaterpillar.add_dependency(parent, child)

Add a dependency between one component and another.

CircleCaterpillar.add_pin(name, points, width)

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

CircleCaterpillar.add_qgeometry(kind, geometry)

Add QGeometry.

CircleCaterpillar.connect_components_already_in_design(...)

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

CircleCaterpillar.delete()

Delete the QComponent.

CircleCaterpillar.get_pin(name)

Interface for components to get pin data.

CircleCaterpillar.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.

CircleCaterpillar.make()

The make function implements the logic that creates the geoemtry (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.

CircleCaterpillar.parse_options([options])

Parse the options, converting string into interpreted values.

CircleCaterpillar.parse_value(value)

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

CircleCaterpillar.populate_to_track_table_usage()

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

CircleCaterpillar.qgeometry_bounds()

Fetched the component bound dict_value.

CircleCaterpillar.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.

CircleCaterpillar.qgeometry_list([element_type])

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

CircleCaterpillar.qgeometry_plot([ax, plot_kw])

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

CircleCaterpillar.qgeometry_table(element_type)

Returns the entire element table for the component.

CircleCaterpillar.rebuild()

Builds the QComponent.

CircleCaterpillar.to_script([thin, ...])

param thin:

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