diff options
| author | hachem <im@hachem.wtf> | 2024-10-12 16:56:12 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2024-10-12 16:56:12 +0200 |
| commit | 483e9e6ce9fbb1440992e916ec743ce0eff0ab5a (patch) | |
| tree | e312bd5be2318c2570d7b42550eaf184deb8c965 /libpsi-core/src/core/runtime.rs | |
| parent | c643b1535ffb106cf582763804bce655e3fb116c (diff) | |
Simplify and start rework of gate application
Diffstat (limited to 'libpsi-core/src/core/runtime.rs')
| -rw-r--r-- | libpsi-core/src/core/runtime.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libpsi-core/src/core/runtime.rs b/libpsi-core/src/core/runtime.rs index 0937f3c..19ac191 100644 --- a/libpsi-core/src/core/runtime.rs +++ b/libpsi-core/src/core/runtime.rs @@ -1,15 +1,15 @@ -use super::{ClassicalRegister, QuantumBit, QuantumCircuit}; +use super::{ClassicalRegister, QuantumCircuit, QuantumRegister}; #[allow(unused)] -pub struct ExecutationData { - pub quantum_states: Vec<QuantumBit>, +pub struct ExecutionData { + pub quantum_register: QuantumRegister, pub classical_states: ClassicalRegister, } -impl ExecutationData { - pub fn new(quantum_states: Vec<QuantumBit>, classical_states: ClassicalRegister) -> Self { - ExecutationData { - quantum_states, +impl ExecutionData { + pub fn new(quantum_register: QuantumRegister, classical_states: ClassicalRegister) -> Self { + ExecutionData { + quantum_register, classical_states, } } @@ -21,5 +21,5 @@ pub trait RuntimeBase { pub trait Runtime<'a, T: RuntimeBase = Self> { fn new(circuit: &'a QuantumCircuit) -> Self; - fn execute(&self, repeat: usize) -> Vec<ExecutationData>; + fn execute(&self, repeat: usize) -> Vec<ExecutionData>; } |
