-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting noise for local qasm simulator (c++) #537
Comments
This is because the simulator checks if the If I change the noise params in your code to the following it runs: z = 0.995004165 + 1j * 0.099833417
z = z / abs(z)
u_error = np.array([[1, 0], [0, z]])
noise_params = {'U':
{'gate_time': 1,
'p_depol': 0.001,
'p_pauli': [0, 0, 0.01],
'U_error': u_error
}
} However there still seems to be a bug that the error that should be raised by the simulator isn't being caught and passed through to the results: If I run the compiled qojb directly from the command line it just appears to abort. |
okay, I do not double check whether or not the Thanks. |
So it seems like to close this issue, the following should be done: |
closing as this is not part of terra anymore and will be documented in aer. |
Informations
local_qasm_simulator_cpp fails when setting particular noise params (the one copied from simulator readme.)
https://github.com/QISKit/qiskit-core/tree/master/src/qasm-simulator-cpp#example
What is the current behavior?
c++ simulator fails with particular noise params setting. (Note that python simulator works well, and if I deleted
U_error
field, it works well, too.)case 1 (installed from pip), trackback
case 2 (installed qiskit from the master branch)
Steps to reproduce the problem
Here is the codes:
What is the expected behavior?
Run without error.
Suggested solutions
No idea.
The text was updated successfully, but these errors were encountered: