qat.lang.AQASM.arithmetic.mult_const

qat.lang.AQASM.arithmetic.mult_const(reg_size: int, acc_size: int, constant: int)

Generates a QRoutine performing a multiplication between a register of size reg_size and a constant, accumulating the result in a register of size acc_size . By default, acc_size is chosen equal to reg_size .

Parameters
  • reg_size (int) – the registers size

  • acc_size (int) – the accumulator size

  • constant (int) – the constant to add

Warning

Some additional qubits might be allocated by sub-routines inside this routine.

This routine calls: