Struct qcgpu::Simulator [−][src]
pub struct Simulator { /* fields omitted */ }
Methods
impl Simulator
[src]
impl Simulator
pub fn new_opencl(num_qubits: u8) -> Result<Simulator, Error>
[src]
pub fn new_opencl(num_qubits: u8) -> Result<Simulator, Error>
pub fn apply_gate(&mut self, gate: Gate, target: u8) -> Result<(), Error>
[src]
pub fn apply_gate(&mut self, gate: Gate, target: u8) -> Result<(), Error>
pub fn apply_all(&mut self, gate: Gate) -> Result<(), Error>
[src]
pub fn apply_all(&mut self, gate: Gate) -> Result<(), Error>
pub fn x(&mut self, target: u8) -> Result<(), Error>
[src]
pub fn x(&mut self, target: u8) -> Result<(), Error>
pub fn y(&mut self, target: u8) -> Result<(), Error>
[src]
pub fn y(&mut self, target: u8) -> Result<(), Error>
pub fn z(&mut self, target: u8) -> Result<(), Error>
[src]
pub fn z(&mut self, target: u8) -> Result<(), Error>
pub fn h(&mut self, target: u8) -> Result<(), Error>
[src]
pub fn h(&mut self, target: u8) -> Result<(), Error>
pub fn cx(&mut self, control: u8, target: u8) -> Result<(), Error>
[src]
pub fn cx(&mut self, control: u8, target: u8) -> Result<(), Error>
pub fn measure(&mut self) -> Result<u64, Error>
[src]
pub fn measure(&mut self) -> Result<u64, Error>
pub fn num_qubits(&mut self) -> u8
[src]
pub fn num_qubits(&mut self) -> u8
Trait Implementations
impl Debug for Simulator
[src]
impl Debug for Simulator
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Simulator
[src]
impl Display for Simulator