aboutsummaryrefslogtreecommitdiff
path: root/libpsi-tester
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2024-09-22 10:11:02 +0200
committerhachem <im@hachem.wtf>2024-09-22 10:11:02 +0200
commit53287a755cc8bcef8b4c1324f1ed1f34224e15c4 (patch)
tree145974cff606e06c48dfe1ca2476f21d0ce5a1d2 /libpsi-tester
parenta84b6394209e37620e45155a25b3755b38ba8515 (diff)
rename project to psi
Diffstat (limited to 'libpsi-tester')
-rw-r--r--libpsi-tester/Cargo.toml7
-rw-r--r--libpsi-tester/src/main.rs8
2 files changed, 15 insertions, 0 deletions
diff --git a/libpsi-tester/Cargo.toml b/libpsi-tester/Cargo.toml
new file mode 100644
index 0000000..6e6ae37
--- /dev/null
+++ b/libpsi-tester/Cargo.toml
@@ -0,0 +1,7 @@
+[package]
+name = "libpsi-tester"
+version = "0.1.0"
+edition = "2021"
+
+[dependencies]
+libpsi = { path = "../libpsi" } \ No newline at end of file
diff --git a/libpsi-tester/src/main.rs b/libpsi-tester/src/main.rs
new file mode 100644
index 0000000..4aaa92d
--- /dev/null
+++ b/libpsi-tester/src/main.rs
@@ -0,0 +1,8 @@
+use libpsi::*;
+
+fn main() {
+ let bit_1 = qubit![(1.0, 2.0), (1.0, 2.0)];
+ let bit_2 = qubit![(1.0, 2.0), (1.0, 2.0)];
+ let register: QuantumRegister = quantum_register![bit_1, bit_2];
+ println!("{}", register);
+}