Open simonecantori opened 10 months ago
The noise model seems to be added upon initializing the simulator. Even if I explicitly add an empty noise model to the backend beforehand, after initalizing the simulator, there is a noise model present again. If you add:
noise_model = NoiseModel()
sim.set_options(noise_model=noise_model)
after
sim = AerSimulator.from_backend(backend) # Fake backend with 0 noise simulator
it works as expected. The initial values probably get overridden somewhere inside the class. Best regards!
I guess this behaviour is not so relevant as to merit any code updates, since using a FakeBackend to simulate an ideal backend does not seem like a hard usecase.
If I use V2 fake backends, I can set a certain noise equal to 0 with
and I can do that for each kind of instruction ('id', 'rz', 'sx', 'x', 'cx', 'measure') and for each qubit.
If I do that, I still have noisy expectation values. The noise is not due to the fine amount of shots since with ideal quantum circuits with the same amount of shots I get much better results.
Which kind of noise is still acting on the circuit?
A reproducible example:
The output is: