pub struct SurfaceCodePatch {
pub logical_id: u32,
pub physical_qubits: Vec<u32>,
pub code_distance: u32,
pub x_origin: u32,
pub y_origin: u32,
}Expand description
A surface code patch representing one logical qubit.
Fields§
§logical_id: u32Logical qubit identifier.
physical_qubits: Vec<u32>Physical qubit indices comprising this patch.
code_distance: u32Code distance for this patch.
x_origin: u32X origin of this patch on the physical qubit grid.
y_origin: u32Y origin of this patch on the physical qubit grid.
Trait Implementations§
Source§impl Clone for SurfaceCodePatch
impl Clone for SurfaceCodePatch
Source§fn clone(&self) -> SurfaceCodePatch
fn clone(&self) -> SurfaceCodePatch
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 SurfaceCodePatch
impl RefUnwindSafe for SurfaceCodePatch
impl Send for SurfaceCodePatch
impl Sync for SurfaceCodePatch
impl Unpin for SurfaceCodePatch
impl UnsafeUnpin for SurfaceCodePatch
impl UnwindSafe for SurfaceCodePatch
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