pub struct LinearInterferometer {
pub mode_count: usize,
pub unitary_matrix: Array2<Complex64>,
pub loss_rates: Vec<f64>,
pub phase_stability: f64,
pub interferometer_type: InterferometerType,
}Fields§
§mode_count: usize§unitary_matrix: Array2<Complex64>§loss_rates: Vec<f64>§phase_stability: f64§interferometer_type: InterferometerTypeImplementations§
Source§impl LinearInterferometer
impl LinearInterferometer
pub fn new(mode_count: usize) -> Self
pub fn configure_interferometer( &mut self, mode_count: usize, ) -> Result<&Self, QuantRS2Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinearInterferometer
impl RefUnwindSafe for LinearInterferometer
impl Send for LinearInterferometer
impl Sync for LinearInterferometer
impl Unpin for LinearInterferometer
impl UnwindSafe for LinearInterferometer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more