add qreg and complex