CircuitInterface

Trait CircuitInterface 

Source
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§

Source

fn execute(&self, shots: usize) -> DeviceResult<ExecutionResult>

Execute the circuit

Source

fn depth(&self) -> usize

Get circuit depth

Source

fn num_qubits(&self) -> usize

Get number of qubits

Source

fn gate_count(&self) -> usize

Get gate count

Source

fn clone_circuit(&self) -> Box<dyn CircuitInterface>

Clone the circuit

Implementors§