How to execute quantum circuits with different parameters and different measurements in parallel?

I have a batch of parameters and non-commuting observables, how do I run them in parallel?

dev = qml.device("lightning.gpu", wires=nq, batch_obs=True)
@qml.qnode(dev, interface='torch', diff_method='adjoint')
def circuit(inputs, obs):
    qml.layer(layer_2U, n_layer, inputs)
    return qml.expval(obs)

Hey @jones, welcome back!

Definitely check out our new device API!

qml.devices.default_qubit.DefaultQubit — PennyLane 0.34.0 documentation (scroll down to “Accelerate calculations with multiprocessing”). Let me know if you’re able to accomplish what you want to do :slight_smile: