piel.models.logic.electro_optic.signal_map

piel.models.logic.electro_optic.signal_map#

TODO implement this function. In this function we implement different methods of mapping electronic signals to phase.

One particular implementation of phase mapping would be:

Example Basic Phase Mapping#

Bit

Phase

b0

\(\phi_0 \to 0\)

b1

\(\phi_1 \to \pi\)

We can define the two corresponding angles that this would be.

A more complex implementation of phase mapping can be similar to a DAC mapping: a bitstring within a converter bit-size can map directly to a particular phase space within a particular mapping.

Functions#

linear_bit_phase_map(...)

Returns a linear direct mapping of bits to phase.

Module 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:

BitPhaseMap