RoutePathfinder.connect_astar_or_simple#

RoutePathfinder.connect_astar_or_simple(start_pt: QRoutePoint, end_pt: QRoutePoint) list[source]#

Connect start and end via A* algo if connect_simple doesn’t work.

Parameters:
  • start_direction (np.array) – Vector indicating direction of starting point

  • start (np.array) – 2-D coordinates of first anchor

  • end (np.array) – 2-D coordinates of second anchor

Returns:

List of vertices of a CPW going from start to end

Raises:

QiskitMetalDesignError – If the connect_simple() has failed.