CrossKerr

Module: pennylane

class CrossKerr(kappa, wires)[source]

Cross-Kerr interaction.

\[CK(\kappa) = e^{i \kappa \hat{n}_1\hat{n}_2}.\]

Details:

  • Number of wires: 2
  • Number of parameters: 1
  • Gradient recipe: None (uses finite difference)
Parameters:
  • kappa (float) – parameter
  • wires (Sequence[int] or int) – the wire the operation acts on