Struct qcgpu::backends::OpenCL[][src]

pub struct OpenCL {
    pub buffer: Buffer<Complex<f32>>,
    // some fields omitted
}

Fields

OpenCL Buffer for the state vector

Methods

impl OpenCL
[src]

Initialize a new OpenCL Backend

Takes an argument of the number of qubits to use in the register, and returns a result with the backend.

Trait Implementations

impl Debug for OpenCL
[src]

Formats the value using the given formatter. Read more

impl Backend for OpenCL
[src]

Measure the whole register, leaving the register in the measured state

Note: Currently this leaves the register in the unmeasured state.

Measure the value of a single qubit, leaving the register in the state where only that qubit (or any entangled qubits) have been collapsed

Get the number of qubits that this backend was initialized for

impl Display for OpenCL
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for OpenCL

impl Sync for OpenCL