CubicPhase

Module: pennylane

class CubicPhase(gamma, wires)[source]

Cubic phase shift.

\[V(\gamma) = e^{i \frac{\gamma}{3} \hat{x}^3/\hbar}.\]

Details:

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