iqm.qrisp_iqm.passes.routing.core.sabre_metric.compute_sabre_cost_from_dag#
- iqm.qrisp_iqm.passes.routing.core.sabre_metric.compute_sabre_cost_from_dag(topology: QPUTopology, instruction_dag: CircuitDAG, c2a: np.ndarray) float#
Compute the SABRE cost from a given instruction DAG.
Evaluates under a given initial layout for a given topology.
- Parameters:
- Returns:
The SABRE metric.
- Return type: