We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
apply
gates.GeneralizedRBS
As per title. Here is a minimal code to reproduce the bug.
As seen in #1591 , the problem seems to be either in
qibo/src/qibo/backends/einsum_utils.py
Line 28 in 725e646
Line 10 in 725e646
In [1]: import numpy as np ...: ...: from qibo import gates ...: from qibo.backends import NumpyBackend ...: ...: backend = NumpyBackend() ...: ...: gate = gates.GeneralizedRBS([1], [0, 2], 0.1) ...: matrix = gate.matrix(backend) ...: ...: state = np.array([0, 0, 1, 0, 0, 0, 0, 0], dtype=complex) ...: ...: print(matrix @ state) ...: print() ...: print(gate.apply(backend, state, nqubits=3)) [0. +0.j 0. +0.j 0.99500417+0.j 0. +0.j 0. +0.j 0.09983342+0.j 0. +0.j 0. +0.j] [0.+0.j 0.+0.j 1.+0.j 0.+0.j 0.+0.j 0.+0.j 0.+0.j 0.+0.j]
The text was updated successfully, but these errors were encountered:
sparse_encoder
models.encodings
gates.GeneralizedRBS.apply
renatomello
Successfully merging a pull request may close this issue.
As per title. Here is a minimal code to reproduce the bug.
As seen in #1591 , the problem seems to be either in
qibo/src/qibo/backends/einsum_utils.py
Line 28 in 725e646
qibo/src/qibo/backends/einsum_utils.py
Line 10 in 725e646
The text was updated successfully, but these errors were encountered: