pub struct TranspilerConfig {
pub basis: BasisGateSet,
pub coupling_map: Option<Vec<(u32, u32)>>,
pub optimization_level: u8,
}Expand description
Transpiler configuration.
Fields§
§basis: BasisGateSetTarget basis gate set.
coupling_map: Option<Vec<(u32, u32)>>Optional coupling map describing which qubit pairs support two-qubit
gates. Edges are undirected – (a, b) implies (b, a).
optimization_level: u8Optimization level: 0 = none, 1 = inverse-pair cancellation, 2 = also merge adjacent Rz rotations.
Trait Implementations§
Source§impl Clone for TranspilerConfig
impl Clone for TranspilerConfig
Source§fn clone(&self) -> TranspilerConfig
fn clone(&self) -> TranspilerConfig
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 TranspilerConfig
impl RefUnwindSafe for TranspilerConfig
impl Send for TranspilerConfig
impl Sync for TranspilerConfig
impl Unpin for TranspilerConfig
impl UnsafeUnpin for TranspilerConfig
impl UnwindSafe for TranspilerConfig
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