Struct VariableManager
pub struct VariableManager {
pub path_vars: FxHashSet<u32>,
pub continuous_vars: FxHashSet<u32>,
pub num_qubits: usize,
pub next_id: u32,
}Fields§
§path_vars: FxHashSet<u32>§continuous_vars: FxHashSet<u32>§num_qubits: usize§next_id: u32Implementations§
§impl VariableManager
impl VariableManager
pub fn new(num_qubits: usize) -> Self
pub fn get_fresh_var(&mut self) -> u32
pub fn fmt_var(&self, var_id: u32) -> String
pub fn fmt_monomial(&self, mono: &Monomial) -> String
pub fn fmt_polynomial(&self, poly: &FxHashSet<Monomial>) -> String
pub fn fmt_phase_poly(&self, p: &PhasePolynomial) -> String
Trait Implementations§
§impl Clone for VariableManager
impl Clone for VariableManager
Auto Trait Implementations§
impl Freeze for VariableManager
impl RefUnwindSafe for VariableManager
impl Send for VariableManager
impl Sync for VariableManager
impl Unpin for VariableManager
impl UnsafeUnpin for VariableManager
impl UnwindSafe for VariableManager
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