You're reading the documentation of the v0.10. For the latest released version, please have a look at v0.12.
Polarization Object
- class perceval.utils.polarization.Polarization(v)
Polarization class
This class is defined values used by polarization annotations P
- Parameters:
v (str | any | tuple[any, any]) – a string (
[HVADLR]
), a single angle or a pair of angle definition either symbolic or numeric. Angles should be in \([0,\pi]\) range.- Raise:
ValueError if the parameters are out of range, or invalid
- static parse(s)
Parse a polarization value string
- Parameters:
s (
str
) – should match regex:^([HVADLR]|\(theta,phi\)|theta$
- Return type:
- Returns:
a Polarization instance
- Raise:
ValueError if the value cannot be parsed, or if parameters are invalid
- project_eh_ev(use_symbolic=False)
Build Jones vector corresponding to the current instance
- Return type:
tuple
[any
,any
]- Returns:
a pair of numeric or symbolic expressions