pub trait CircuitInterface: Debug {
// Required methods
fn execute(&self, shots: usize) -> DeviceResult<ExecutionResult>;
fn depth(&self) -> usize;
fn num_qubits(&self) -> usize;
fn gate_count(&self) -> usize;
fn clone_circuit(&self) -> Box<dyn CircuitInterface>;
}Expand description
Generic circuit interface
Required Methods§
Sourcefn execute(&self, shots: usize) -> DeviceResult<ExecutionResult>
fn execute(&self, shots: usize) -> DeviceResult<ExecutionResult>
Execute the circuit
Sourcefn num_qubits(&self) -> usize
fn num_qubits(&self) -> usize
Get number of qubits
Sourcefn gate_count(&self) -> usize
fn gate_count(&self) -> usize
Get gate count
Sourcefn clone_circuit(&self) -> Box<dyn CircuitInterface>
fn clone_circuit(&self) -> Box<dyn CircuitInterface>
Clone the circuit