]> foleosoft.com Git - QAnsel.git/commitdiff
Thu Mar 21 09:00:51 AM EDT 2024
authormiha-q <>
Thu, 21 Mar 2024 13:00:51 +0000 (09:00 -0400)
committermiha-q <>
Thu, 21 Mar 2024 13:00:51 +0000 (09:00 -0400)
src/context.c
src/display.c
src/main.c
src/main.h

index 04503bcc657888b2fccd0662e2d19968941ba66e..59a8c089e46ca46465d7327f8484f6375f36fa3b 100644 (file)
@@ -109,4 +109,4 @@ int qanselContextEnd(QAnselContext* ctx)
        if (ctx->random_file != NULL) fclose(ctx->random_file);
        if (ctx->optimization_level & QANSEL_MODE_METAL) cpx_mtx_clean();
        return 1;
-}
\ No newline at end of file
+}
index b0519b6b1016ff3b5b06bb5cad3112678576af6d..c533b521cbfa081fb51542cc08323d72ebf45fa4 100644 (file)
@@ -158,4 +158,4 @@ int display(cpx_mtx_t* stateVector, uint8_t qubitCount, int delay)
     fprintf(stderr, "QAnsel: Graphical display was not enabled during compilation.\n");
     return 0;
 }
-#endif
\ No newline at end of file
+#endif
index 8b83e54ee4ec874ddfc440f765696a96859fd189..18b11774c19b8404412251b979d22da4d6fb76ad 100644 (file)
@@ -77,4 +77,4 @@ int main(int argc, char** argv)
        }
        qanselContextEnd(&ctx);
        return 0;
-}
\ No newline at end of file
+}
index 3b3c9ea0d46f813112987f529034c45ce9af39f2..402c172015a9e4c7bbb414ad23b901c09ea80a9d 100644 (file)
@@ -2,6 +2,7 @@
 #define __MAIN_H__
 
 #include <stdlib.h>
+#include <unistd.h>
 #include "context.h"
 #include "openqasm.h"