blob: 5c529a689227cfe635ca428b8aa8a43bdb031090 (
plain)
1
2
3
4
5
6
7
8
9
10
|
use libpsi_core::*;
fn main() {
let mut circuit = QuantumCircuit::new(2, 2);
circuit.apply(&gates::HADAMARD, &[], &[0]);
circuit.apply(&gates::CNOT, &[0], &[1]);
let runtime = BasicRT::new(&circuit);
runtime.execute(1024);
}
|