I’m curious if I can design a circuit in which I apply a gate on a qumode based on the outcome of a measurement on another qumode, something like this:

```
device = qml.device('strawberryfields.fock', cutoff_dim=5, wires=2)
@qml.qnode(device, interface='torch')
def circ(x, theta, phi):
qml.Displacement(4.0, x, wires=[0])
qml.Displacement(4.0, x, wires=[1])
qml.Beamsplitter(theta, phi, wires=[0,1])
qml.Squeezing( qml.expval(qml.P(0)), np.pi, wires=[1] )
return qml.expval(qml.X(1))
x = torch.tensor(.0991, requires_grad=True)
theta = torch.tensor(.744, requires_grad=True)
phi = torch.tensor(.655, requires_grad=True)
circ(x, theta, phi)
```

When running the code above, I get an error:

```
TypeError: Squeezing: Real scalar parameter expected, got <class 'pennylane.ops.cv.P'>.
```