deltakit.explorer.codes.Monomial#
- class deltakit.explorer.codes.Monomial(x_pow: int, y_pow: int, l: int, m: int)#
Bases:
objectClass used to encapsulate the “Monomial” concept used in the IBM paper.
Monomials are expressions of the form (x^a)*(y^b) where the powers a and b are modulo the code parameters l and m respectively.
These monomials describe individual data qubits, and a collection of Monomials (Polynomials) can be used to describe a collection of data qubits.
The inverse of a Monomial is defined to be another Monomial with powers a’, b’ such that a+a’0, b+b’=0. That is, a Monomial that one can multiply by to get back to the identity element x^0 y^0.
Params#
- x_powint
The power of the x-term in the Monomial.
- y_powint
The power of the y-term in the Monomial.
- lint
The l parameter of the code the Monomial is a part of.
- mint
The m parameter of the code the Monomnial is a part of.
Methods#
The inverse of a monomial is a monomial with powers such that when multiplied, the powers add to 0. |