astar_router
AStarRouter
Bases: Router
Source code in opensquirrel/passes/router/astar_router.py
route
Route the input IR using the A* search algorithm.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ir
|
IR
|
The input IR to be routed. |
required |
qubit_register_size
|
int
|
Size of the qubit register. |
required |
Returns:
| Type | Description |
|---|---|
IR
|
The routed IR. |