piel.models.logic.electro_optic#
Submodules#
Functions#
|
Returns a linear direct mapping of bits to phase. |
Package Contents#
- linear_bit_phase_map(bits_amount: int, final_phase_rad: float, initial_phase_rad: float = 0, quantization_error: float = 1e-06, **kwargs) piel.types.digital_electro_optic.BitPhaseMap[source]#
Returns a linear direct mapping of bits to phase.
- Parameters:
bits_amount (int) – Amount of bits to generate.
final_phase_rad (float) – Final phase to map to.
initial_phase_rad (float) – Initial phase to map to.
quantization_error (float) – Error in the phase mapping.
- Returns:
Mapping of bits to phase.
- Return type: