qiu_classical_simulation.wave_optics.result
¶
The result of a lens experiment: snapshots of the transverse field along the way.
The snapshots are named, in the order the simulation takes them: step_0 for the
entering beam, step_lens_{i} after each lens slice i, after_lens behind the lens,
step_after_lens_{j} after each free propagation step j = 1, 2, ..., and final.
Classes:
-
ExperimentResult–The snapshots of an experiment and the success probabilities of its protocol.
Functions:
-
lens_snapshot_name–Return the name of the snapshot after a lens slice, counted from 0.
-
free_space_snapshot_name–Return the name of the snapshot after a free propagation step, from 1.
ExperimentResult
dataclass
¶
ExperimentResult(snapshots: dict[str, NDArray[complex128]], total_lenses_simulated: int, total_probability_of_success: float | None = None, success_probabilities: list[float] | None = None)
The snapshots of an experiment and the success probabilities of its protocol.
Methods:
-
success_probability–Return the cumulative success probability up to a named snapshot.
-
lens_states–Return the snapshots after each lens slice.
-
free_space_states–Return the snapshots after each free propagation step.
-
summary–Return the scalar results, stored with the parameters.
Attributes:
-
snapshots(dict[str, NDArray[complex128]]) –The normalized amplitudes of the named snapshots, in the order taken.
-
total_lenses_simulated(int) –The number of lens slices with a phase, i.e. not skipped as constant.
-
total_probability_of_success(float | None) –The probability that all cycles of the phase protocol succeeded.
-
success_probabilities(list[float] | None) –The cumulative success probability at each snapshot, in the same order.
snapshots
instance-attribute
¶
snapshots: dict[str, NDArray[complex128]]
The normalized amplitudes of the named snapshots, in the order taken.
total_lenses_simulated
instance-attribute
¶
total_lenses_simulated: int
The number of lens slices with a phase, i.e. not skipped as constant.
total_probability_of_success
class-attribute
instance-attribute
¶
total_probability_of_success: float | None = None
The probability that all cycles of the phase protocol succeeded.
success_probabilities
class-attribute
instance-attribute
¶
The cumulative success probability at each snapshot, in the same order.
success_probability
¶
Return the cumulative success probability up to a named snapshot.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/result.py
44 45 46 47 48 | |
lens_states
¶
lens_states(lens_slices: int) -> list[NDArray[complex128]]
Return the snapshots after each lens slice.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/result.py
50 51 52 | |
free_space_states
¶
free_space_states(steps: int) -> list[NDArray[complex128]]
Return the snapshots after each free propagation step.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/result.py
54 55 56 | |
summary
¶
summary() -> dict
Return the scalar results, stored with the parameters.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/result.py
58 59 60 61 62 63 64 | |
lens_snapshot_name
¶
Return the name of the snapshot after a lens slice, counted from 0.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/result.py
14 15 16 | |
free_space_snapshot_name
¶
Return the name of the snapshot after a free propagation step, from 1.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/result.py
19 20 21 | |