pub struct TeleportResult {
pub classical_bits: (bool, bool),
pub bob_amplitudes: (Complex<f32>, Complex<f32>),
pub fidelity: f32,
}Expand description
Outcome of teleport.
Fields§
§classical_bits: (bool, bool)Alice’s two measurement bits (m0, m1) (qubit 0 then qubit 1).
bob_amplitudes: (Complex<f32>, Complex<f32>)Bob’s reconstructed amplitudes (⟨0|ψ'⟩, ⟨1|ψ'⟩) on qubit 2, obtained by
projecting the post-correction three-qubit state onto Alice’s measured
branch and tracing out qubits 0 and 1.
fidelity: f32Fidelity |⟨ψ|ψ'⟩|² between the input state and Bob’s output.
Trait Implementations§
Source§impl Clone for TeleportResult
impl Clone for TeleportResult
Auto Trait Implementations§
impl Freeze for TeleportResult
impl RefUnwindSafe for TeleportResult
impl Send for TeleportResult
impl Sync for TeleportResult
impl Unpin for TeleportResult
impl UnsafeUnpin for TeleportResult
impl UnwindSafe for TeleportResult
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