I was wondering if there’s any way to implement adjoints for the cubic phase gate or the Kerr gate? I’m quite new to CV so I’m unsure as to whether there is a work-around for it. I would imagine that if the matrix is truncated, then there is a possibility to simply take the adjoint of that? How accurate is something like this?

At the moment, there is no built-in method to take the Hermitian conjugate of a quantum operation. However, in the case of these two gates, it is simply sufficient to negate the parameter.

since the number operator is self-adjoint (\hat{n}^\dagger = \hat{n}). The same result holds true for the cubic phase gate, as \hat{x}^\dagger = \hat{x}:

With regards to your second question about the accuracy of truncation; if choosing between the two non-linear CV operations (Kerr and cubic phase), in general, it is always better to use the Kerr interaction.

This is simply due to numerical accuracy — since the number operator \hat{n} is diagonal the Fock basis, computing the matrix exponential and therefore the action of the Kerr interaction is relatively easy and accurate computationally.

The position operator x is not diagonal, and so we need to compute a truncated matrix exponential, resulting in the additional numerical error.