qiu_classical_simulation.wave_optics.cli
¶
The command line of the lens experiment simulations, shared by their backends.
The defaults are the experiment of the paper: a beam of 25 um FWHM at 1 um wavelength through a plano-convex lens of 200 um focal length and refractive index 1.25, in a transverse window of 100 um, sliced into 10000 slices, followed by 300 um of free space in 300 steps.
Functions:
-
argument_parser–Return the parser of the simulation's command line.
-
parameters_from_arguments–Return the parameters of the experiment of the paper, as the arguments vary it.
-
parse_parameters–Parse the command line into the parameters and the results directory.
Attributes:
-
LENGTH_SCALE–The scale of the lengths of the experiment, except for the wavelength.
LENGTH_SCALE
module-attribute
¶
LENGTH_SCALE = 0.001
The scale of the lengths of the experiment, except for the wavelength.
argument_parser
¶
argument_parser(description: str, default_results_dir: Path) -> ArgumentParser
Return the parser of the simulation's command line.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/cli.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 | |
parameters_from_arguments
¶
parameters_from_arguments(arguments: Namespace) -> ExperimentParameters
Return the parameters of the experiment of the paper, as the arguments vary it.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/cli.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 | |
parse_parameters
¶
parse_parameters(description: str, default_results_dir: Path, argv: Sequence[str] | None = None) -> tuple[ExperimentParameters, Path]
Parse the command line into the parameters and the results directory.
Source code in packages/qiu-classical-simulation/src/qiu_classical_simulation/wave_optics/cli.py
77 78 79 80 81 82 | |