Pytorch Interface using multiple inputs - best practice?

Hi @cnada,

Since none of the underlying simulators/hardware devices support batching, unfortunately you’ll still have to provide a batch of inputs manually (e.g., with a for loop).

A more intensive option (taken by fellow user @rooler) is to manually create a simulator which automatically handles batching :smiley: (see here).

We do have on our roadmap to provide batching support in PennyLane. This would require either that a backend provider exposes this feature, or that we build our own support in PennyLane’s own simulators. But for the moment, you’ll have to use the old-fashioned option mentioned above.

1 Like