Trait qcgpu::traits::Backend [−][src]
pub trait Backend: Debug + Display { fn num_qubits(&self) -> u8; fn apply_gate(&mut self, gate: Gate, target: u8) -> Result<(), Error>; fn apply_controlled_gate(
&mut self,
gate: Gate,
control: u8,
target: u8
) -> Result<(), Error>; fn measure_qubit(&mut self, target: u8) -> Result<u64, Error>; fn measure(&mut self) -> Result<u64, Error> { ... } }
Required Methods
fn num_qubits(&self) -> u8
fn apply_gate(&mut self, gate: Gate, target: u8) -> Result<(), Error>
fn apply_controlled_gate(
&mut self,
gate: Gate,
control: u8,
target: u8
) -> Result<(), Error>
&mut self,
gate: Gate,
control: u8,
target: u8
) -> Result<(), Error>
fn measure_qubit(&mut self, target: u8) -> Result<u64, Error>
Provided Methods
Implementors
impl Backend for OpenCL