qiskit-metal icon indicating copy to clipboard operation
qiskit-metal copied to clipboard

transmon_cross.py

Open agmoshe opened this issue 7 months ago • 1 comments

Information

  • Qiskit Metal version: 0.1.5
  • Python version: 3.12.9
  • Operating system: WIndows 11 Pro

What is the current behavior?

When I try to change the claw width for the Xmon the connection pins at 0 and 180 degrees shift. Then when I try to connect a resonator for example, the claw and the resonator line do nor overlap in the vertical direction ,creating a mismatch.

Steps to reproduce the problem

Try to build an Xmon with the following settings

Q1 = TransmonCrossFL(design, 'Q1', options = dict(pos_x = '0mm', pos_y='0mm', cross_width = '24um', cross_length = '156um', cross_gap = '12um', make_fl = False, connection_pads = dict( readout = dict(connector_location = '180', claw_length ='92um', claw_width='24um'), drive = dict(connector_location = '0', claw_cpw_length = '0um', claw_width = '10um', ground_spacing = '30um', connector_type = '1'))))

to add flux line add fl_options = dict() and change make_fl = True

gui.rebuild() gui.autoscale()

When looking in the GUI the readout red arrow will be shifted from the cross center.

What is the expected behavior?

The connection pin should be exactly centered on the cross.

Suggested solutions

I fixed it by changing line 206 from

port_line = draw.LineString([(-c_c_l - c_w, -c_c_w / 2),

to port_line = draw.LineString([(-c_c_l - c_w, -c_w / 2),

and that seems to fix the issue.

agmoshe avatar Mar 12 '25 13:03 agmoshe