Just trying to understand how noise modelling works with Pennylane.
If I have a wire with a bunch of gates ending with
qml.RY(2, wires=1) followed by
qml.BitFlip(0.1, wires=1), does this mean that a bitflip error would be applied to all the gates on the wire or just following the application of the
If the answer is the latter, is there a way to define a bitflip error model which acts globally on the whole circuit rather than having to add it after each gate on each qubit?
Given a noisy simulation, one has to use the
default.mixed device. Behind the scenes, is this using the
lightning.qubit device for a given shot, probabilistically applying the noise and then collapsing the wavefunction to build up the density matrix? I ask because the exact simulation with the
ligthning.qubit device is much much faster that the noisy simulation with the
mixed device. Any way to speed up my noisy simulations?
Thanks a lot.