Skip to content
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

refactor QuantumNetwork to support general quantum networks #1244

Merged
merged 84 commits into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from 51 commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
0dc4961
refactor `QuantumNetwork` to support general quantum networks
Canoming Mar 2, 2024
93c7ca3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 2, 2024
ee9d38f
gix typo
Canoming Mar 4, 2024
71764b8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 4, 2024
89a6642
improve readability of the `__str__` of `QauantumNetwork`
Canoming Mar 4, 2024
af3eeb5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 4, 2024
704aa0e
correct order of tensor
Canoming Mar 6, 2024
443f199
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 6, 2024
f54e74d
Merge branch 'master' into quantum_network
renatomello Mar 6, 2024
6f9b30a
add pre-defined tensors
Canoming Mar 7, 2024
1a5e282
Merge branch 'master' into quantum_network
renatomello Mar 9, 2024
5909b94
Merge branch 'master' into quantum_network
renatomello Mar 14, 2024
9401fcd
generalize the `is_causal` method to all combs
Canoming Mar 15, 2024
385bae6
resolve the type errors when multiplied by np.int or np.float
Canoming Mar 30, 2024
89c28a6
fix existing tests
Canoming Apr 13, 2024
a9b6a3b
update documents
Canoming Apr 14, 2024
ed5651a
fix issue: `tensorflow.norm` cannot take argument `order=None` in som…
Canoming Apr 17, 2024
f9eb604
fix issue: `tensorflow.norm` cannot take argument `order=None`
Canoming Apr 17, 2024
1e0290f
make `einsum` depends on backend
Canoming Apr 17, 2024
8aa5fad
Merge branch 'master' into quantum_network
Canoming Apr 17, 2024
dd810ec
fix order issue as in `master`
Canoming Apr 17, 2024
f9b0654
fix tensorflow transpose
Canoming Apr 18, 2024
779b2ff
try to fix tensorflow operations
Canoming Apr 18, 2024
c9b41f0
fix the return of the `norm` in `tensorflow` cannot be compared with …
Canoming Apr 18, 2024
5f62d19
rearrange `try` `except` block for better err log readability
Canoming Apr 18, 2024
908b753
try to resolve `transpose` by convert tensor to `numpy`
Canoming Apr 19, 2024
a1fcc40
cast the argument `shape` in `reshape` to `tuple` for `pytorch` backend
Canoming Apr 19, 2024
beddc35
fix: the argument names in `pytorch` is different from `numpy`
Canoming Apr 19, 2024
d77bcca
delete unexpected auto import
Canoming Apr 19, 2024
c7de13f
update doc for quantum comb and quantum channel
Canoming Apr 19, 2024
bf881ca
increase test coverage
Canoming Apr 21, 2024
0792262
more tests
Canoming Apr 21, 2024
db58c29
add test to cover deeper recursive steps in `is_causal`
Canoming Apr 27, 2024
85bec9c
Merge remote-tracking branch 'origin/master' into quantum_network
Canoming Apr 27, 2024
c02f147
increase test coverage
Canoming Apr 30, 2024
1d3b091
Merge branch 'master' into quantum_network
scarrazza May 8, 2024
f50bae6
cover more tests
Canoming May 14, 2024
95e27e3
restore the correct default behavior of quantum channel
Canoming May 14, 2024
9d84332
remove unnecessary checks and cover the rest of lines
Canoming May 14, 2024
871ba16
more tests
Canoming May 16, 2024
a8174f6
Update according to (Alejandro's comments)[https://github.com/qibotea…
Canoming Jun 2, 2024
ef84860
Update src/qibo/quantum_info/quantum_networks.py
Canoming Jun 5, 2024
d3798e1
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jun 5, 2024
3b232f7
Merge branch 'master' into quantum_network
renatomello Jun 19, 2024
1aff624
small spacing change
renatomello Jun 19, 2024
8253485
update according to the comments from @renatomello
Canoming Jun 23, 2024
4a2ee64
complete docstring for `link_product`
Canoming Jun 23, 2024
4f0e9da
Set default dtype of predefined networks as `complex128`
Canoming Jun 24, 2024
1991184
Merge branch 'master' into quantum_network
renatomello Jun 27, 2024
5384d23
Update src/qibo/quantum_info/quantum_networks.py
renatomello Jun 27, 2024
8c227d1
lint improvements
renatomello Jun 27, 2024
66c4ee2
lint improvements
renatomello Jun 27, 2024
2f1ded3
improve docstring
renatomello Jun 27, 2024
0e799c4
Merge branch 'master' into quantum_network
renatomello Jun 28, 2024
99ce58e
reorder args
renatomello Jun 28, 2024
a311ee8
fix tests
renatomello Jun 28, 2024
493b67b
Merge branch 'master' into quantum_network
renatomello Jun 28, 2024
604282e
docstring
renatomello Jun 28, 2024
07d7a49
Merge branch 'master' into quantum_network
renatomello Jul 1, 2024
556bc4e
Merge branch 'master' into quantum_network
renatomello Jul 4, 2024
93de8c2
Resolve comments from @renatomello on Jun 28
Canoming Jul 4, 2024
7859756
Merge branch 'master' into quantum_network
renatomello Jul 5, 2024
b9d5626
Update tests/test_quantum_info_quantum_networks.py
renatomello Jul 5, 2024
6ccc0af
Update tests/test_quantum_info_quantum_networks.py
renatomello Jul 5, 2024
218db0d
Merge branch 'master' into quantum_network
renatomello Jul 12, 2024
cdd6614
Merge branch 'master' into quantum_network
renatomello Jul 13, 2024
eb58951
minor change
renatomello Jul 17, 2024
b2d74b4
required by `torch`
renatomello Jul 17, 2024
d8fea7e
minor docstring change
renatomello Jul 17, 2024
c346601
introduce `S` symbol
renatomello Jul 17, 2024
da8c652
Update src/qibo/quantum_info/quantum_networks.py
Canoming Jul 17, 2024
afad5fa
Update src/qibo/quantum_info/quantum_networks.py
Canoming Jul 17, 2024
a09d0b1
Update src/qibo/quantum_info/quantum_networks.py
Canoming Jul 17, 2024
3918df8
Resolve the remaining comments
Canoming Jul 17, 2024
7308e8c
Merge branch 'master' into quantum_network and resolve backend depend…
Canoming Jul 17, 2024
38451be
cover tests
Canoming Jul 19, 2024
1724570
remove `Number` type dependency
Canoming Jul 19, 2024
7700b3c
Merge branch 'master' into quantum_network
renatomello Jul 20, 2024
730ee54
remove class
renatomello Jul 20, 2024
4871acf
remove `try / except`
renatomello Jul 20, 2024
d71649f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 20, 2024
ca00dd6
modifications
renatomello Jul 20, 2024
c19162f
fix bug
renatomello Jul 20, 2024
ee4f624
fix type check
renatomello Jul 20, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/source/api-reference/qibo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1922,11 +1922,22 @@ For more details, see G. Chiribella *et al.*, *Theoretical framework for quantum
`Physical Review A 80.2 (2009): 022339
<https://journals.aps.org/pra/abstract/10.1103/PhysRevA.80.022339>`_.


.. autoclass:: qibo.quantum_info.quantum_networks.QuantumNetwork
:members:
:member-order: bysource


.. autoclass:: qibo.quantum_info.quantum_networks.QuantumComb
:members:
:member-order: bysource


.. autoclass:: qibo.quantum_info.quantum_networks.QuantumChannel
:members:
:member-order: bysource


Random Ensembles
^^^^^^^^^^^^^^^^

Expand Down
122 changes: 0 additions & 122 deletions doc/source/code-examples/tutorials/quantum_networks/README.md

This file was deleted.

Loading