flip_code

Contents

flip_code#

ssip.basic_functions.flip_code(C: CSScode) CSScode[source]#

Takes a CSS code and exchanges PX and PZ, giving a code with the same parameters but flipped Z and X generators.

Parameters:

C – The CSS code.

Returns:

A new CSS code with flipped X and Z generators.