qat.lang.AQASM.arithmetic.mult_const_mod
- qat.lang.AQASM.arithmetic.mult_const_mod(reg_size: int, acc_size: int, constant: int, modulus: int)
Generates a
QRoutineperforming the following operation:\[| a \rangle | b \rangle \mapsto |a \rangle | b + a \times \textrm{constant} \mod \textrm{modulus} \rangle\]- Parameters:
Warning
Some additional qubits might be allocated by sub-routines inside this routine.
This routine calls:
qat.lang.AQASM.arithmetic.add_const_mod()with arguments (acc_size, _, _)