pub struct NeutralAtomClient {
pub base_url: String,
pub auth_token: String,
pub client: Client,
pub timeout: Duration,
pub headers: HashMap<String, String>,
}Expand description
Client for neutral atom quantum computing systems
Fields§
§base_url: StringBase URL for the neutral atom service
auth_token: StringAuthentication token
client: ClientHTTP client for API requests
timeout: DurationRequest timeout
headers: HashMap<String, String>Additional headers for requests
Implementations§
Source§impl NeutralAtomClient
impl NeutralAtomClient
Sourcepub fn new(base_url: String, auth_token: String) -> DeviceResult<Self>
pub fn new(base_url: String, auth_token: String) -> DeviceResult<Self>
Create a new neutral atom client
Sourcepub fn with_config(
base_url: String,
auth_token: String,
timeout_secs: u64,
headers: HashMap<String, String>,
) -> DeviceResult<Self>
pub fn with_config( base_url: String, auth_token: String, timeout_secs: u64, headers: HashMap<String, String>, ) -> DeviceResult<Self>
Create a new neutral atom client with custom configuration
Sourcepub async fn get_devices(&self) -> DeviceResult<Vec<NeutralAtomDeviceInfo>>
pub async fn get_devices(&self) -> DeviceResult<Vec<NeutralAtomDeviceInfo>>
Get available neutral atom devices
Sourcepub async fn get_device(
&self,
device_id: &str,
) -> DeviceResult<NeutralAtomDeviceInfo>
pub async fn get_device( &self, device_id: &str, ) -> DeviceResult<NeutralAtomDeviceInfo>
Get device information by ID
Sourcepub async fn submit_job(
&self,
job_request: &NeutralAtomJobRequest,
) -> DeviceResult<String>
pub async fn submit_job( &self, job_request: &NeutralAtomJobRequest, ) -> DeviceResult<String>
Submit a job to a neutral atom device
Sourcepub async fn get_job_status(
&self,
job_id: &str,
) -> DeviceResult<NeutralAtomJobStatus>
pub async fn get_job_status( &self, job_id: &str, ) -> DeviceResult<NeutralAtomJobStatus>
Get job status
Sourcepub async fn get_job_results(
&self,
job_id: &str,
) -> DeviceResult<NeutralAtomJobResult>
pub async fn get_job_results( &self, job_id: &str, ) -> DeviceResult<NeutralAtomJobResult>
Get job results
Sourcepub async fn cancel_job(&self, job_id: &str) -> DeviceResult<()>
pub async fn cancel_job(&self, job_id: &str) -> DeviceResult<()>
Cancel a job
Trait Implementations§
Source§impl Clone for NeutralAtomClient
impl Clone for NeutralAtomClient
Source§fn clone(&self) -> NeutralAtomClient
fn clone(&self) -> NeutralAtomClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for NeutralAtomClient
impl !RefUnwindSafe for NeutralAtomClient
impl Send for NeutralAtomClient
impl Sync for NeutralAtomClient
impl Unpin for NeutralAtomClient
impl !UnwindSafe for NeutralAtomClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.