add qr with custom inner product