Calculating effective dimension

Hi, I want to calculate the effective dimension for a neural network constructed using strawberry fields. Is there a way to do that? If not, are there any suggestions on how to do that? Here is how it is done in the qiskit: https://qiskit.org/ecosystem/machine-learning/tutorials/10_effective_dimension.html

Hey @ShikBan! Welcome back :smile:

Are you referring to what’s outlined in section 3.2 of this paper?

If so, this isn’t a function that’s in strawberryfields. However, I suggest that you take a look at the source code for how Qiskit implements it and see if you can adapt it to strawberryfields :slight_smile:.

Hi Isaac,

Thus far I only see ED calculation is only for classification. How to use PL for the ED computation for regressor case? TQ

Hi @SuFong_Chien,

We don’t have anything specifically for computing Effective Dimension of a model but in qml.specs you’ll find the number of trainable parameters, along with other information that you might be able to use to calculate the effective dimension.

I hope this helps!