pub struct QaoaConfig {
pub problem_name: String,
pub p_layers: usize,
}Expand description
Quantum approximate optimization algorithm (QAOA).
Fields§
§problem_name: String§p_layers: usizeImplementations§
Source§impl QaoaConfig
impl QaoaConfig
pub fn new(problem: &str, p: usize) -> Self
pub fn approximation_ratio_lower_bound(&self) -> f64
pub fn num_circuit_parameters(&self) -> usize
Trait Implementations§
Source§impl Clone for QaoaConfig
impl Clone for QaoaConfig
Source§fn clone(&self) -> QaoaConfig
fn clone(&self) -> QaoaConfig
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 QaoaConfig
impl RefUnwindSafe for QaoaConfig
impl Send for QaoaConfig
impl Sync for QaoaConfig
impl Unpin for QaoaConfig
impl UnsafeUnpin for QaoaConfig
impl UnwindSafe for QaoaConfig
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