Parallel Circuit execution during optimisation

Hi @Tz_19 ,

You shouldn’t use batches within the circuit but instead outside of it. In many cases broadcasting is supported, but not always.

In this case my recommendation would be to create a simple test circuit which receives some batched inputs and parameters. You can try something similar to the code by @Kernel123 in topic #8124. You can even simplify it more if you want to test any changes.

If you’re still facing issues with a simple test circuit please post the full code to reproduce and the full error traceback.

I hope this helps!