void qansel_run(QAnselContext* ctx, unsigned char* program, int programSize, int qubitCount, int bitCount, unsigned char* outputBitVector);
int qanselExecuteBytecode(unsigned char* buff, int sizeofbuff, QAnselContext* ctx);
-#endif
\ No newline at end of file
+#endif
// the standard knk_metal() function.
void cpx_mtx_knk_metal_2x2(float* ptrR, float* ptrA, float* ptrB, int rowsA, int colsA, int rowsB, int colsB);
-#endif
\ No newline at end of file
+#endif
int qanselContextBegin(QAnselContext* ctx);
int qanselContextEnd(QAnselContext* ctx);
-#endif
\ No newline at end of file
+#endif
#endif
int display(cpx_mtx_t* stateVector, uint8_t qubitCount, int delay);
-#endif
\ No newline at end of file
+#endif
int qansel_hardware_rand_supported();
unsigned char qansel_hardware_rand();
-#endif
\ No newline at end of file
+#endif
const int get_global_id_0
);
-#endif
\ No newline at end of file
+#endif
exit(0);
}
-void main(int argc, char** argv)
+int main(int argc, char** argv)
{
QAnselContext ctx = {0};
free(bytecode);
}
qanselContextEnd(&ctx);
- return;
-
+ return 0;
}
\ No newline at end of file
int qansel_process_chunks(char** chunks, int* associatedLines, int count, unsigned char** retBinary, int* retSize, QAnselContext* ctx, int samplingshots);
int qanselBuildFromSource(char* source, unsigned char** binary, int* binarySize, QAnselContext* ctx);
-#endif
\ No newline at end of file
+#endif
#define QANSEL_ALL_CLASSIC 0x3F
#define QANSEL_ALL 0xFF
-#endif
\ No newline at end of file
+#endif