pub struct LogicalOutput {
pub port: IVec3,
pub instance: TemplateInstanceId,
pub x: PauliMap,
pub z: PauliMap,
}Expand description
Terminal logical Pauli operators for one program output.
The compiler records these in layout-global coordinates so an executor can inspect or teleport an output using the saved IR alone. The owning instance also identifies the output cut gated by shot-scoped discards.
Fields§
§port: IVec3The source output port.
instance: TemplateInstanceIdInstance owning this output cut; coordinates may be reused by later instances. Its membership and enclosing region selections must be unconditional (WF-7).
x: PauliMapLogical X operator in layout-global coordinates.
z: PauliMapLogical Z operator in layout-global coordinates.
Trait Implementations§
Source§impl Clone for LogicalOutput
impl Clone for LogicalOutput
Source§fn clone(&self) -> LogicalOutput
fn clone(&self) -> LogicalOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogicalOutput
impl Debug for LogicalOutput
Source§impl<'de> Deserialize<'de> for LogicalOutput
impl<'de> Deserialize<'de> for LogicalOutput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LogicalOutput
Source§impl PartialEq for LogicalOutput
impl PartialEq for LogicalOutput
Source§impl Serialize for LogicalOutput
impl Serialize for LogicalOutput
impl StructuralPartialEq for LogicalOutput
Auto Trait Implementations§
impl Freeze for LogicalOutput
impl RefUnwindSafe for LogicalOutput
impl Send for LogicalOutput
impl Sync for LogicalOutput
impl Unpin for LogicalOutput
impl UnsafeUnpin for LogicalOutput
impl UnwindSafe for LogicalOutput
Blanket Implementations§
§impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseMutViaBorrow<BorrowedSelf> for T
fn assign_index(&mut self, index: usize, to: bool)
fn negate_index(&mut self, index: usize)
fn clear_bits(&mut self)
fn assign_random(
&mut self,
bit_count: usize,
random_number_generator: &mut impl RngExt,
)where
BorrowedSelf: BitLength,
§impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
impl<Bits, Other, BorrowedSelf, BorrowedOther> BitwisePairMutViaBorrow<Other, BorrowedSelf, BorrowedOther> for Bits
fn assign(&mut self, other: &Other)
fn bitxor_assign(&mut self, other: &Other)
fn bitand_assign(&mut self, other: &Other)
fn bitor_assign(&mut self, other: &Other)
§impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
impl<T, Other, BorrowedSelf, BorrowedOther> BitwisePairViaBorrow<Other, BorrowedSelf, BorrowedOther> for T
§impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
impl<T, BorrowedSelf> BitwiseViaBorrow<BorrowedSelf> for T
fn index(&self, index: usize) -> bool
fn weight(&self) -> usize
fn parity(&self) -> bool
fn is_zero(&self) -> bool
fn is_unit(&self, index: usize) -> bool
fn support<'a>(&'a self) -> impl SortedIteratorwhere
BorrowedSelf: 'a,
fn max_support(&self) -> Option<usize>
fn min_support(&self) -> Option<usize>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.