calculate subevent Qn vector using eta gap and test the randomness between psi_A and psi_B