-
Notifications
You must be signed in to change notification settings - Fork 0
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
Import basic elements from Qibo #1
Conversation
Current import-related criticalities: ❯ rg import | rg 'qibo\.' | rg -v 'qibo.backends' | rg -v 'qibo.gates' | rg -v 'qibo.config' | rg -v 'qibo.measurements' | rg -v 'qibo.result'
src/qibo_core/gates/channels.py: from qibo.quantum_info.superoperator_transformations import ( # pylint: disable=C0415
src/qibo_core/gates/channels.py: from qibo.quantum_info.superoperator_transformations import ( # pylint: disable=C0415
src/qibo_core/gates/channels.py: from qibo.quantum_info.basis import comp_basis_to_pauli # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/gates/gates.py: from qibo.transpiler.decompositions import ( # pylint: disable=C0415
src/qibo_core/__init__.py:from qibo.models.circuit import Circuit |
Transpiler@stavros11 I would remove the It is not essential to gates to know how they are decomposed (even because it's not unique), and they are also mostly falling back on I would open a corresponding issue in Channels@renatomello the transformations of a I'd be happy to keep the basic definition of the CircuitIt is actually not referenced anywhere, but I'd be inclined in including it in |
If all representations are removed, than the |
Thanks @renatomello for the answer. If I understand correctly, The motivation is that the The idea is similar to what numpy is doing with the |
As of right now, 'Channel.matrix' raises
Also
Those already exist in
It doesn't really matter to me which representation is returned by |
Yes, I'm aware of that (mentioned in my first comment above).
You're right, I just forgot (I now remember some PR about them). So much the better :)
About keeping Kraus I agree: I know that is definitely non-unique, as the Using Kraus would be quite symmetric to the fact that there is no Instead, would you agree on dropping |
Thanks @alecandido for starting these efforts. Hopefully this will fix the issues we are having with the circular dependencies (for example qiboteam/qibojit#170 (comment)). Also now git-blaming this code will point to you, so I will have less things to worry about 😛
I fully agree with removing
I am not sure about this. I would be inclined to say no, in order to keep Other than these, I guess we should also move some of the qibo tests here and at some point (maybe short before going public) enable CI. I am not sure if you are planning to do this in this PR. (EDIT: Just saw issue #2 about tests) |
I can make the changes in
Sure, if |
I will manually blame you (or check whether it is possible to tell Git the truth!) |
Ok, I see your point. Let's say that I will import If it's only for the type (in
Yes, this is strictly required asap. However, this PR is not going to be complete in any respect. Tests & workflows are the next up, since we need the same reliability of |
New versions of NumPy already dropped py3.8, and I do not see a strong reason to support a broader range than NumPy itself
And fix some of them, since they all point explicitly to qibo
Ok, the discussion is relevant, but it won't disappear. But, by now, I'm quite involved in the alternative, so I have no interest in continuing this import. |
Just to start doing something.
@MatteoRobbiati @stavros11 @hay-k
qibo
importsconstruct_backend