fix for qbit array passing