Ketamine is an NMDA receptor antagonist.  There are many complicated changes in brain chemistry when one takes Ketamine, and it is postulated that its antidepressant effects may arise from neurons forming new connections.  Many believe that during and soon after the Ketamine experience, the brain is in a “neuroplastic” state, and capable of new learning.