iqm.qrisp_iqm.passes.routing.core.sabre_metric.compute_front_layer_prefactor#
- iqm.qrisp_iqm.passes.routing.core.sabre_metric.compute_front_layer_prefactor(front_layer_indices: list[int], instruction_data: ndarray, depth_array: ndarray) float#
Precompute the prefactor of the front layer.
- Parameters:
front_layer_indices (list[int]) – A list of integers indicating which entries of instruction data constitute the front layer.
instruction_data (np.ndarray) – An array describing what instructions are available globally (see graph_processing_tools for more details).
depth_array (np.ndarray) – The depth array indicating the layer of each instruction.
- Returns:
The prefactor.
- Return type: