central_line_y = sample.chip_geometry.sample_vertical_size / 2 chip_edge_ground = elements.ChipEdgeGround(sample.chip_geometry, sample.layer_configuration, sample.pads) chip_edge_ground.render_direct = True sample.add(chip_edge_ground) # 1. Create contact pads: pads_left = [] pads_right = [] for pad_side_id in range(1): pad = elements.Pad( 'pad-left-' + str(pad_side_id), (pad_offset, sample.chip_geometry.sample_vertical_size / 2), np.pi, tl_core, tl_gap, tl_ground, layer_configuration=sample.layer_configuration, chip_geometry=sample.chip_geometry, **elements.default_pad_geometry()) pads_left.append(pad) sample.add(pad) pad = elements.Pad( 'pad-right-' + str(pad_side_id), (sample.chip_geometry.sample_horizontal_size - pad_offset, sample.chip_geometry.sample_vertical_size / 2), 0, tl_core, tl_gap, tl_ground, layer_configuration=sample.layer_configuration,
for pad_side_id in range(nu_pads_side): position = (-sample.chip_geometry.sample_horizontal_size / 2 + pad_offset, sample.chip_geometry.sample_vertical_size / (nu_pads_side + 1) * (-nu_pads_side / 2 + pad_side_id + 1 / 2)) position = -((-1j)**side_id) * (position[0] + 1j * position[1]) position = (np.real(position) + sample.chip_geometry.sample_horizontal_size / 2, np.imag(position) + sample.chip_geometry.sample_vertical_size / 2) pad = elements.Pad('pad-{}-side-{}'.format(pad_side_id, side_id), position, np.angle(((-1j)**side_id)), tl_core, tl_gap, tl_ground, layer_configuration=sample.layer_configuration, chip_geometry=sample.chip_geometry, **pad_geometry) side_list.append(pad) sample.add(pad) # qubit params coupler_s = 26 flux_w = 10 flux_s = 6 flux_g = 20 squid_coupler_horizontal = {