Quantum circuit pruning

I am using genetic algorithum to prune some gate in quantum circuits to improve performance and I used tensorflow and pennylane strawberry fields for creating the model
and i am getting error
object of type ‘NoneType’ has no len()

Hey @Divyansh_Rai_4-Year , welcome to the forum! :slight_smile:

Could you share a minimal (meaning as short as possible, but so it still runs and reproduces the error you have) code example here, so we can see exactly what’s going on and help you figure it out? :smiley: