Rectangle

A single configurable square.

Rectangle

Class Rectangle · Module qiskit_metal.qlibrary.sample_shapes.rectangle · Category sample shapes

Inherits QComponent

Usage

from qiskit_metal import designs
from qiskit_metal.qlibrary.sample_shapes.rectangle import Rectangle

design = designs.DesignPlanar()
comp = Rectangle(design, "rectangle1", options=dict())

Pins

None with the default options. Pins appear when the options define connection pads, ports, or flux lines.

Default options

Option

Default

pos_x

'0.0um'

pos_y

'0.0um'

orientation

'0.0'

chip

'main'

layer

'1'

width

'500um'

height

'300um'

subtract

'False'

helper

'False'

More

API reference