subsystem_distance_GAP

subsystem_distance_GAP#

ssip.distance.subsystem_distance_GAP(C: CSScode, gauge_Zs: list[list[int]], gauge_Xs: list[list[int]], gap_path: str | None = None, num_information_sets: int | None = None, input_filename: str | None = None, output_filename: str | None = None) int[source]#

Gives an upper bound on the dressed distance of a subsystem CSS code using GAP. If the code is small enough and the number of information sets is high then this upper bound is tight.

Parameters:
  • C – The CSScode.

  • gauge_Zs – A spanning set of the gauged Z logicals.

  • gauge_Xs – A spanning set of the gauged X logicals.

  • gap_path – The absolute path to the GAP directory.

  • num_information_sets – The number of information sets to make.

  • input_filename – Which file to use as input to GAP.

  • output_filename – Which file to receive results from GAP.

Returns:

An upper bound on the dressed distance of C as a subsystem code.