unitaria.ConstantIntegerAddition¶
- class unitaria.ConstantIntegerAddition(bits: int, constant: int)[source]¶
Bases:
ClassicalNode implementing the (wrapping) addition of a constant to an integer.
- Parameters:
bits – The size of the quantum state. The addition is performed modulo
2 ** bits.constant – The contant that should be added. Has to be positive.