diff options
| author | hachem <im@hachem.wtf> | 2024-10-18 09:34:36 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2024-10-18 09:34:36 +0200 |
| commit | 5f058c9b67e0f96e0dd89bbeff0afe8e08bde25b (patch) | |
| tree | 7546702edc4d6e2c66c1440753c31387b38dea9f /libpsi-core/src/core/runtime.rs | |
| parent | 7cc3c78a24b51a58d44e1baff20b86292662390e (diff) | |
Allow named registers and tiny refactor
Diffstat (limited to 'libpsi-core/src/core/runtime.rs')
| -rw-r--r-- | libpsi-core/src/core/runtime.rs | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libpsi-core/src/core/runtime.rs b/libpsi-core/src/core/runtime.rs deleted file mode 100644 index f3e52ac..0000000 --- a/libpsi-core/src/core/runtime.rs +++ /dev/null @@ -1,22 +0,0 @@ -use super::{ClassicalRegister, QuantumCircuit, QuantumRegister, QuantumState}; - -pub struct RuntimeData { - pub quantum_register: QuantumRegister, - pub classical_states: ClassicalRegister, -} - -impl RuntimeData { - pub fn new(quantum_register: QuantumRegister, classical_states: ClassicalRegister) -> Self { - RuntimeData { - quantum_register, - classical_states, - } - } -} - -pub trait Runtime<'a> { - fn new(circuit: &'a QuantumCircuit) -> Self; - fn execute(&self, repeat: usize) -> Vec<RuntimeData>; - fn get_state(&self) -> QuantumState; - fn get_circuit(&self) -> &QuantumCircuit; -} |
