aboutsummaryrefslogtreecommitdiff
path: root/libpsi/src/core/gates.rs
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2024-09-24 21:33:51 +0200
committerhachem <im@hachem.wtf>2024-09-24 21:33:51 +0200
commitc07ab7911bd50d0060841690a863333a9a3f226d (patch)
tree5deb12fc8234d553318e4615ae21ddfcc6db4ab4 /libpsi/src/core/gates.rs
parent26010345eedc716c70e8a4219005db19b266c960 (diff)
rename project
Diffstat (limited to 'libpsi/src/core/gates.rs')
-rw-r--r--libpsi/src/core/gates.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/libpsi/src/core/gates.rs b/libpsi/src/core/gates.rs
deleted file mode 100644
index e9077ad..0000000
--- a/libpsi/src/core/gates.rs
+++ /dev/null
@@ -1,22 +0,0 @@
-use crate::{complex, matrix, QuantumGate};
-
-#[rustfmt::skip]
-lazy_static::lazy_static! {
- pub static ref HADAMARD: QuantumGate = matrix!([complex!(1.0, 0.0), complex!( 1.0, 0.0)];
- [complex!(1.0, 0.0), complex!(-1.0, 0.0)]) *
- complex!(1.0/2.0_f64.sqrt(), 0.0);
-
- pub static ref PAULI_X: QuantumGate = matrix!([complex!(0.0, 0.0), complex!(1.0, 0.0)];
- [complex!(1.0, 0.0), complex!(0.0, 0.0)]);
-
- pub static ref PAULI_Y: QuantumGate = matrix!([complex!(0.0, 0.0), complex!(0.0, -1.0)];
- [complex!(0.0, 1.0), complex!(0.0, 0.0)]);
-
- pub static ref PAULI_Z: QuantumGate = matrix!([complex!(1.0, 0.0), complex!( 0.0, 0.0)];
- [complex!(0.0, 0.0), complex!(-1.0, 0.0)]);
-
- pub static ref CNOT: QuantumGate = matrix!([complex!(1.0, 0.0), complex!(0.0, 0.0), complex!(0.0, 0.0), complex!(0.0, 0.0)];
- [complex!(0.0, 0.0), complex!(1.0, 0.0), complex!(0.0, 0.0), complex!(0.0, 0.0)];
- [complex!(0.0, 0.0), complex!(0.0, 0.0), complex!(0.0, 0.0), complex!(1.0, 0.0)];
- [complex!(0.0, 0.0), complex!(0.0, 0.0), complex!(1.0, 0.0), complex!(0.0, 0.0)]);
-}