Class CKgate

Inheritance Relationships

Base Type

Class Documentation

class blackbird::CKgate : public blackbird::Operation

Represents the cross-Kerr interaction. For more details, see the Strawberry Fields convention page.

Cross-Kerr parameter \(\kappa\) accessible via:

  • \(\kappa\): CKgate->f1

Public Functions

inline CKgate(complexvec s, intvec m)

Constructor that throws an error if complex parameters are provided.

Parameters
  • svector<complex<double>> parameters

  • mvector<int> containing both modes the gate acts on

Throws

invalid_argumentOperation must have real arguments

inline CKgate(intvec s, intvec m)

Constructor that throws an error if integer parameters are provided.

Parameters
  • svector<int> parameters

  • mvector<int> containing both modes the gate acts on

Throws

invalid_argumentOperation must have real arguments

inline CKgate(floatvec s, intvec m)

Constructor to initialize a CKgate acting on modes m

Parameters
  • svector<double> of length 1 containing the parameter :math:\kappa

  • mvector<int> containing both modes the gate acts on