aboutsummaryrefslogtreecommitdiff
path: root/include/core
diff options
context:
space:
mode:
Diffstat (limited to 'include/core')
-rw-r--r--include/core/classical_components.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/core/classical_components.h b/include/core/classical_components.h
new file mode 100644
index 0000000..48714b4
--- /dev/null
+++ b/include/core/classical_components.h
@@ -0,0 +1,21 @@
+#pragma once
+
+#include <stdbool.h>
+#include <stddef.h>
+
+struct PsiClassicalBit
+{
+ const char *name;
+ bool state;
+};
+
+struct PsiClassicalRegister
+{
+ const char *name;
+ struct PsiClassicalBit *bits;
+ size_t num_bits;
+};
+
+struct PsiClassicalBit psi_new_classical_bit(const char *name, bool state);
+struct PsiClassicalRegister psi_new_classical_register(const char *name, const char **names, size_t count);
+void psi_free_classical_register(struct PsiClassicalRegister *reg);