From 2770097e25e7fb5090efe0f85340f0c638f9dd71 Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 28 Sep 2024 23:58:13 +0200 Subject: Prep for first CLI visualizer --- libpsi-core/src/core/runtime.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpsi-core/src/core/runtime.rs') diff --git a/libpsi-core/src/core/runtime.rs b/libpsi-core/src/core/runtime.rs index 5b0a45f..0937f3c 100644 --- a/libpsi-core/src/core/runtime.rs +++ b/libpsi-core/src/core/runtime.rs @@ -19,7 +19,7 @@ pub trait RuntimeBase { fn get_circuit(&self) -> &QuantumCircuit; } -pub trait Runtime { - fn new(circuit: QuantumCircuit) -> Self; +pub trait Runtime<'a, T: RuntimeBase = Self> { + fn new(circuit: &'a QuantumCircuit) -> Self; fn execute(&self, repeat: usize) -> Vec; } -- cgit v1.3