# Can quDit gates be non-unitary

I have derived a quantum quDit gate that is implemented by photon Fock state inteference. It turns out to be non-unitary. I thought I must have made a mistake, so I have checked several times. I know a qubit gate must be unitary, but can a quDit gate be non-unitary?