How to use an array type as parameter of a Procedure
Your procedure is fine, it can accept any size qitArray.  But when you declare your signal in your test bench, which you later pass to the procedure, it has to have a well defined length.