default.qubit is used for ideal simulations and
default.mixed is used for noisy simulations.
What is the difference between the two that prevents the former device from implementing noise models?
When I use a noise gate like
qml.DepolarizingChannel, what is being implemented in terms of gates on the circuit?
The documentation refers to Kraus operators relating to each Pauli operator. Can the noise gate be simulated by probabilistically applying the Pauli gates on the
For example, is the below code correctly applying the noise channel?
@qml.qnode(dev) def circ(): qml.RY(.5, wires=0) # Depolarising Noise if np.random.choice([True, False], p=[d / 3, 1 - d / 3]): qml.PauliX(0) if np.random.choice([True, False], p=[d / 3, 1 - d / 3]): qml.PauliY(0) if np.random.choice([True, False], p=[d / 3, 1 - d / 3]): qml.PauliZ(0) return qml.expval(qml.PauliX(0))