 # include "../QuEST.h"
 # include "../QuEST_internal.h"
 # include "../QuEST_precision.h"
+# include "../QuEST_validation.h" // throwing measurement prob errors after discovery
 # include "../mt19937ar.h"
 
 // debug: remove this after all validation is removed


void statevec_sigmaYConj(QubitRegister qureg, const int targetQubit) 
{
    QuESTAssert(targetQubit >= 0 && targetQubit < qureg.numQubitsInStateVec, 1, __func__);
    int threadsPerCUDABlock, CUDABlocks;
    threadsPerCUDABlock = 128;
    CUDABlocks = ceil((REAL)(qureg.numAmpsPerChunk>>1)/threadsPerCUDABlock);


void statevec_hadamard(QubitRegister qureg, const int targetQubit) 
{
    int threadsPerCUDABlock, CUDABlocks;
    threadsPerCUDABlock = 128;
    CUDABlocks = ceil((REAL)(qureg.numAmpsPerChunk>>1)/threadsPerCUDABlock);
