distance_GAP

Contents

distance_GAP#

ssip.distance.distance_GAP(C: CSScode, 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 distance of a CSS code using GAP. If the code is small enough and the number of information sets is high then this upper bound is tight. Empirically, we find that setting num_information_sets = 10,000 gives complete accuracy at ~200 qubits.

Parameters:
  • C – The CSScode.

  • 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 distance of C.