pub struct LocalSimulatorProvider;Expand description
A hardware provider backed by the local state-vector simulator.
This provider is always available and does not require credentials. It
builds a QuantumCircuit from the qubit count parsed out of the QASM
header and executes via Simulator::run_shots. The resulting
measurement histogram is returned as a HardwareResult.
Trait Implementations§
Source§impl HardwareProvider for LocalSimulatorProvider
impl HardwareProvider for LocalSimulatorProvider
Source§fn provider_type(&self) -> ProviderType
fn provider_type(&self) -> ProviderType
The discriminant identifying this provider type.
Source§fn available_devices(&self) -> Vec<DeviceInfo>
fn available_devices(&self) -> Vec<DeviceInfo>
List all devices available through this provider.
Source§fn device_calibration(&self, device: &str) -> Option<DeviceCalibration>
fn device_calibration(&self, device: &str) -> Option<DeviceCalibration>
Retrieve the most recent calibration data for a named device.
Source§fn submit_circuit(
&self,
qasm: &str,
shots: u32,
device: &str,
) -> Result<JobHandle, HardwareError>
fn submit_circuit( &self, qasm: &str, shots: u32, device: &str, ) -> Result<JobHandle, HardwareError>
Submit a QASM circuit string for execution.
Source§fn job_status(&self, handle: &JobHandle) -> Result<JobStatus, HardwareError>
fn job_status(&self, handle: &JobHandle) -> Result<JobStatus, HardwareError>
Poll the status of a previously submitted job.
Source§fn job_results(
&self,
handle: &JobHandle,
) -> Result<HardwareResult, HardwareError>
fn job_results( &self, handle: &JobHandle, ) -> Result<HardwareResult, HardwareError>
Retrieve results for a completed job.
Auto Trait Implementations§
impl Freeze for LocalSimulatorProvider
impl RefUnwindSafe for LocalSimulatorProvider
impl Send for LocalSimulatorProvider
impl Sync for LocalSimulatorProvider
impl Unpin for LocalSimulatorProvider
impl UnsafeUnpin for LocalSimulatorProvider
impl UnwindSafe for LocalSimulatorProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more