QPredictDecompositionPass.analyze_remainder

QPredictDecompositionPass.analyze_remainder(R, locations)[source]

Perform remainder analysis on R to sort locations.

Parameters:
  • R (UnitaryMatrix) – The remainder to analyze.

  • locations (Sequence[Sequence[CircuitLocation]]) – List of locations grouped by block size.

Returns:

Sorted list of locations for next block

based on remainder analysis.

Return type:

(list[CircuitLocation])