Measurement before gate

Hi, I am constructing a Quantum Neural Network using continuous variable architecture with strawberryfields.
I would like to reduce the size of layer, by measuring one of the qumodes at the end of one layer as below.

The image is from the original paper on continuous-variable quantum neural network (https://arxiv.org/pdf/1806.06871.pdf)
However, I cannot apply a gate to an unmeasured qumode, after one of the qumodes.

Would there be a way to apply a gate after measurement?

Thank you :slight_smile:

Hi @Ashley,

Can you provide a bit more detail about what you’re trying to achieve here, and what’s preventing you from carrying that task out? I’d like to help if I can, but I don’t think I understand your question well enough.

Are you trying to perform a measurement on one qumode, then apply a gate to another qumode whose parameter is determined by the result of the first measurement?