Initial import

This commit is contained in:
Vincent Bourdon
2026-06-09 16:14:55 +02:00
commit 9af114e391
87 changed files with 20848 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
use spinoza::{
core::State,
gates::Gate,
unitaries::{apply_unitary, Unitary},
};
fn main() {
let n = 16;
let state = State::new(n);
let u = Unitary::from_single_qubit_gate(&state, Gate::U(1.0, 2.0, 3.0), 0);
let now = std::time::Instant::now();
let _s = apply_unitary(&state, &u);
let elapsed = now.elapsed().as_micros();
println!("{elapsed} us elapsed");
}