qadd implementation notes