polynomial_to_qubits#
- ssip.lifted_product.polynomial_to_qubits(poly: list[tuple[int]], l: int, m: int, primed: bool = False) list[int] [source]#
Converts a polynomial in two variables into a set of qubits in a bivariate bicycle code.
- Parameters:
poly – the polynomial in x and y to be converted.
l – Size of first circulants in the tensor product.
m – Size of second circulants in the tensor product.
primed – Whether to index into the primed or
block. (unprimed)
- Returns:
The set of indices i.e. qubits in the code.