symop.polynomial.channels.models.phase

Phase-shifter models for CCR polynomial representations.

This module provides helpers for applying a single-mode phase-shifter unitary to ket, density, and operator polynomial objects.

Functions

phase_densitypoly(rho, *, mode, phi[, ...])

Apply a single-mode phase shift to a density polynomial.

phase_ketpoly(poly, *, mode, phi[, ...])

Apply a single-mode phase shift to a ket polynomial.

phase_oppoly(op, *, mode, phi[, ...])

Apply a single-mode phase shift to an operator polynomial.

phase_densitypoly(rho: DensityPoly, *, mode: ModeOp, phi: float, check_unitary: bool = False, atol: float = 1e-10) DensityPoly

Apply a single-mode phase shift to a density polynomial.

Parameters:
  • rho (DensityPoly)

  • mode (ModeOp)

  • phi (float)

  • check_unitary (bool)

  • atol (float)

Return type:

DensityPoly

phase_ketpoly(poly: KetPoly, *, mode: ModeOp, phi: float, check_unitary: bool = False, atol: float = 1e-10) KetPoly

Apply a single-mode phase shift to a ket polynomial.

Parameters:
Return type:

KetPoly

phase_oppoly(op: OpPoly, *, mode: ModeOp, phi: float, check_unitary: bool = False, atol: float = 1e-10) OpPoly

Apply a single-mode phase shift to an operator polynomial.

Parameters:
  • op (OpPoly)

  • mode (ModeOp)

  • phi (float)

  • check_unitary (bool)

  • atol (float)

Return type:

OpPoly