pub struct GroundStateResolver { /* private fields */ }Expand description
Ground-State Resolver for quantum context resolution.
Implementations§
Source§impl GroundStateResolver
impl GroundStateResolver
Sourcepub fn submit_problem(&mut self, request: GsrRequest) -> Result<u64, GsrError>
pub fn submit_problem(&mut self, request: GsrRequest) -> Result<u64, GsrError>
Submit a QUBO problem for resolution.
Sourcepub fn get_result(&self, problem_id: u64) -> Option<GsrResult>
pub fn get_result(&self, problem_id: u64) -> Option<GsrResult>
Get result for a problem.
Sourcepub fn set_qpu_available(&mut self, available: bool)
pub fn set_qpu_available(&mut self, available: bool)
Marks whether QPU hardware is reachable.
Sourcepub fn is_qpu_available(&self) -> bool
pub fn is_qpu_available(&self) -> bool
true when QPU is reachable.
Sourcepub fn set_classical_solver_enabled(&mut self, enabled: bool)
pub fn set_classical_solver_enabled(&mut self, enabled: bool)
Enables/disables the classical fallback solver.
Sourcepub fn evolve_epistemic_frame(
&mut self,
problem_id: u64,
result: &GsrResult,
) -> Result<(), GsrError>
pub fn evolve_epistemic_frame( &mut self, problem_id: u64, result: &GsrResult, ) -> Result<(), GsrError>
Evolve epistemic frame based on GSR result.
Sourcepub fn get_cached_axiom(&self, problem_id: u64) -> Option<f32>
pub fn get_cached_axiom(&self, problem_id: u64) -> Option<f32>
Get cached axiom for a problem.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GroundStateResolver
impl RefUnwindSafe for GroundStateResolver
impl Send for GroundStateResolver
impl Sync for GroundStateResolver
impl Unpin for GroundStateResolver
impl UnsafeUnpin for GroundStateResolver
impl UnwindSafe for GroundStateResolver
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.