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

Merge branch from qdp branch of qibo #1

Merged
merged 10,000 commits into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
9d55baa
fix: added the global SUPPORTED_NQUBITS var
BrunoLiegiBastonLiegi Jul 2, 2024
f7be227
fix: forgot to pass backend to _check_backend
BrunoLiegiBastonLiegi Jul 2, 2024
38bb7e7
Merge branch 'master' into cov_fix
BrunoLiegiBastonLiegi Jul 3, 2024
4a6fe3a
test: added test for symbols pickling
BrunoLiegiBastonLiegi Jul 3, 2024
b819b7d
test: added test for measurmentsymbol pickling
BrunoLiegiBastonLiegi Jul 3, 2024
205cd83
Merge branch 'master' into pytorch_autodiff
renatomello Jul 3, 2024
3e9f2e7
remove import
renatomello Jul 3, 2024
2027b21
try to fix issue in unitary decompositions
Simone-Bordoni Jul 3, 2024
45727e0
Merge pull request #1349 from qiboteam/dbi-notebooks
MatteoRobbiati Jul 3, 2024
10f559c
fix: using numpy backend
MatteoRobbiati Jul 3, 2024
13a2969
corrections by renato
Simone-Bordoni Jul 3, 2024
6740170
kwargs in functions
renatomello Jul 4, 2024
6fe8818
new test
renatomello Jul 4, 2024
556bc4e
Merge branch 'master' into quantum_network
renatomello Jul 4, 2024
98248f8
Merge branch 'master' into pytorch_autodiff
renatomello Jul 4, 2024
21c766e
feat: commented register_name check
BrunoLiegiBastonLiegi Jul 4, 2024
8e740de
solve gradients problem
Simone-Bordoni Jul 4, 2024
93de8c2
Resolve comments from @renatomello on Jun 28
Canoming Jul 4, 2024
cb74336
Merge branch 'master' into cov_fix
BrunoLiegiBastonLiegi Jul 5, 2024
98a310a
Merge pull request #1379 from qiboteam/encodings
renatomello Jul 5, 2024
363ceae
Merge branch 'master' into pytorch_autodiff
renatomello Jul 5, 2024
7859756
Merge branch 'master' into quantum_network
renatomello Jul 5, 2024
7ee857a
Merge branch 'master' into Gate-set-tomography
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
ff57403
fix: removed commented lines
BrunoLiegiBastonLiegi Jul 5, 2024
c4db6f7
use torch stack in cast to keep gradiets
Simone-Bordoni Jul 5, 2024
18910fb
fix_tests
Simone-Bordoni Jul 5, 2024
e66ff87
fix tests
Simone-Bordoni Jul 5, 2024
5bc0a85
fix tests
Simone-Bordoni Jul 5, 2024
46e12c9
corrections by andrea
Simone-Bordoni Jul 8, 2024
038459e
solved error
Simone-Bordoni Jul 8, 2024
0d2e4f0
Create foo
marekgluza Jul 8, 2024
8dd02dd
Example of KAK decomposition based on D'Allesandro
marekgluza Jul 8, 2024
3211f2f
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 8, 2024
5889293
refector: move m.u.q to a differrent file
khanhuyengiang Jul 9, 2024
93e7987
feat: OSD basic structiure
khanhuyengiang Jul 9, 2024
6ff4f61
tutorial: change to match refactor
khanhuyengiang Jul 9, 2024
39c82ed
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 9, 2024
7feceb7
test: change to match refactor
khanhuyengiang Jul 9, 2024
9f715b5
Merge branch 'qdp' of https://github.com/qiboteam/qibo into qdp
khanhuyengiang Jul 9, 2024
3d25e4f
Merge branch 'master' of https://github.com/qiboteam/qibo into qdp
khanhuyengiang Jul 9, 2024
b4049c9
Add files via upload
ingoroth Jul 9, 2024
f14ed8e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 9, 2024
ef5c097
corrections by andrea
Simone-Bordoni Jul 10, 2024
1d6d129
ci: Switch reusable workflows to v1, instead of main
alecandido Jul 10, 2024
dea07f4
adding code of conduct
scarrazza Jul 10, 2024
e5502ee
Merge pull request #1386 from qiboteam/workflows-v1
alecandido Jul 10, 2024
3bfd433
Merge pull request #1387 from qiboteam/codeofconduct
scarrazza Jul 10, 2024
13b7b04
build(deps): bump certifi from 2024.6.2 to 2024.7.4
dependabot[bot] Jul 6, 2024
e3d8008
Merge pull request #1381 from qiboteam/dependabot/pip/certifi-2024.7.4
alecandido Jul 10, 2024
647e163
Merge branch 'KAK_decomposition' of https://github.com/qiboteam/qibo …
khanhuyengiang Jul 11, 2024
45bb89d
test: Add failing minimal test to reproduce bug for symbolic hamilton…
alecandido Jul 12, 2024
218db0d
Merge branch 'master' into quantum_network
renatomello Jul 12, 2024
a6dc07f
Merge branch 'master' into pytorch_autodiff
renatomello Jul 12, 2024
03ebc16
function and test
renatomello Jul 12, 2024
eb11b8c
Merge branch 'master' into cov_fix
renatomello Jul 12, 2024
cfde704
Update tests/test_hamiltonians_from_symbols.py
renatomello Jul 12, 2024
c9900fe
updated lock
renatomello Jul 12, 2024
6be8f28
Merge branch 'cov_fix' of github.com:qiboteam/qibo into cov_fix
renatomello Jul 12, 2024
b09fc21
replacing functions
renatomello Jul 12, 2024
d91ac23
fix: Add constant to symbolic expectations
alecandido Jul 12, 2024
d1a8ac9
docs: Format docstrings, add few type hints
alecandido Jul 12, 2024
c3031c6
Merge pull request #1288 from qiboteam/cov_fix
renatomello Jul 12, 2024
a71ce20
test
renatomello Jul 12, 2024
a7ce129
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 12, 2024
b51190c
fix: Assume the constant is also real
alecandido Jul 12, 2024
0879f3b
Merge branch 'master' into operations
renatomello Jul 13, 2024
e3f6c45
Merge branch 'master' into pytorch_autodiff
renatomello Jul 13, 2024
cdd6614
Merge branch 'master' into quantum_network
renatomello Jul 13, 2024
ac6005b
Merge branch 'master' into Gate-set-tomography
renatomello Jul 13, 2024
5f42c1f
lock file
renatomello Jul 13, 2024
604aa51
fix bug
renatomello Jul 13, 2024
252c01c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 13, 2024
e9db601
fix callback tests
renatomello Jul 13, 2024
f31e6d5
fix backend use
renatomello Jul 13, 2024
a8751ea
docstring + remove old methods
renatomello Jul 13, 2024
72da0d3
api ref
renatomello Jul 13, 2024
9b09acf
refactor: remove QDP from class name
khanhuyengiang Jul 15, 2024
216088a
feat: added OSD
khanhuyengiang Jul 15, 2024
8763a9b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 15, 2024
7f3682e
hide `test_regressions` method
renatomello Jul 15, 2024
b3b8013
rename submodule
renatomello Jul 15, 2024
6b6fa65
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 15, 2024
16130ac
move `matrix_exp` to `quantum_info`
renatomello Jul 15, 2024
cbc9e88
Merge branch 'operations' of github.com:qiboteam/qibo into operations
renatomello Jul 15, 2024
1ce4761
docstring + remove method from backends
renatomello Jul 15, 2024
3f1d91d
api ref
renatomello Jul 15, 2024
c1880b1
fiz circular import
renatomello Jul 15, 2024
cbec922
Update src/qibo/tomography/gate_set_tomography.py
renatomello Jul 15, 2024
99d6561
Update src/qibo/tomography/gate_set_tomography.py
renatomello Jul 15, 2024
b702237
Update src/qibo/tomography/gate_set_tomography.py
renatomello Jul 15, 2024
1ccabc4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 15, 2024
8e76fd9
remove unused imports
renatomello Jul 15, 2024
bb50f01
Update src/qibo/tomography/gate_set_tomography.py
renatomello Jul 15, 2024
d851e5c
Update src/qibo/tomography/gate_set_tomography.py
renatomello Jul 15, 2024
34d1b88
Update src/qibo/tomography/gate_set_tomography.py
renatomello Jul 15, 2024
6023546
fix tests
renatomello Jul 15, 2024
aecfe46
rename `issparse` as `is_sparse`
renatomello Jul 15, 2024
acee81c
fix bug in dbi + bug in GPU implementation
renatomello Jul 15, 2024
6aa0688
fix lint arg
renatomello Jul 15, 2024
9342839
fix lint error
renatomello Jul 15, 2024
db37b5a
improve string
renatomello Jul 15, 2024
f687277
commutator
renatomello Jul 15, 2024
d9d995f
restore backend methods
renatomello Jul 15, 2024
db27a85
refactor function
renatomello Jul 15, 2024
e02563d
restore abstract method
renatomello Jul 15, 2024
4c22340
new method name
renatomello Jul 15, 2024
23bd9bb
Update src/qibo/tomography/gate_set_tomography.py
BrunoLiegiBastonLiegi Jul 15, 2024
7fe0ec2
Update src/qibo/tomography/gate_set_tomography.py
BrunoLiegiBastonLiegi Jul 15, 2024
2aff5ea
Update src/qibo/tomography/gate_set_tomography.py
BrunoLiegiBastonLiegi Jul 15, 2024
171d7e5
Update src/qibo/tomography/gate_set_tomography.py
BrunoLiegiBastonLiegi Jul 15, 2024
2352cfe
Update src/qibo/tomography/gate_set_tomography.py
BrunoLiegiBastonLiegi Jul 15, 2024
b5155b9
Update src/qibo/tomography/gate_set_tomography.py
BrunoLiegiBastonLiegi Jul 15, 2024
af2767f
build(deps): bump setuptools from 69.5.1 to 70.0.0
dependabot[bot] Jul 15, 2024
e46e365
Merge pull request #1391 from qiboteam/dependabot/pip/setuptools-70.0.0
Edoardo-Pedicillo Jul 16, 2024
0be8f40
Merge pull request #1389 from qiboteam/symbolic-with-constant
alecandido Jul 16, 2024
a60834f
introduce circuit `kwargs` to `QFT`
renatomello Jul 16, 2024
e273295
test
renatomello Jul 16, 2024
6e7c8c0
Merge branch 'master' into pytorch_autodiff
Simone-Bordoni Jul 16, 2024
85ae474
solved error
Simone-Bordoni Jul 16, 2024
9550312
Merge branch 'master' into pytorch_autodiff
renatomello Jul 16, 2024
6cc64b3
Merge branch 'pytorch_autodiff' of github.com:qiboteam/qibo into pyto…
renatomello Jul 16, 2024
59af33c
Merge pull request #1276 from qiboteam/pytorch_autodiff
renatomello Jul 16, 2024
2a2c978
Merge branch 'master' into qft
renatomello Jul 16, 2024
281746a
Merge branch 'master' into Gate-set-tomography
renatomello Jul 16, 2024
e7e94ea
Merge branch 'master' into operations
renatomello Jul 16, 2024
dcf5281
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 16, 2024
3279a62
fix test
renatomello Jul 17, 2024
6e8c48d
fix amth erros in docstrings
renatomello Jul 17, 2024
a468861
Added 'base-4 indexing' descriptions for docstrings
mho291 Jul 17, 2024
eb58951
minor change
renatomello Jul 17, 2024
b2d74b4
required by `torch`
renatomello Jul 17, 2024
d8fea7e
minor docstring change
renatomello Jul 17, 2024
d5fbe70
Update src/qibo/models/dbi/double_bracket.py
renatomello Jul 17, 2024
c346601
introduce `S` symbol
renatomello Jul 17, 2024
713efb2
Merge pull request #1390 from qiboteam/operations
renatomello Jul 17, 2024
adeadfa
Merge branch 'master' into docs
renatomello Jul 17, 2024
cf68ecf
Merge branch 'master' into qft
renatomello Jul 17, 2024
1c69272
Merge branch 'master' into Gate-set-tomography
renatomello Jul 17, 2024
537bbe9
add '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
3caab74
feat: added 2 qubits class for OSD
khanhuyengiang Jul 19, 2024
a28659d
Merge branch 'qdp' of https://github.com/qiboteam/qibo into qdp
khanhuyengiang Jul 19, 2024
c84622e
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 19, 2024
9f1a03e
Merge branch 'master' of https://github.com/qiboteam/qibo into qdp
khanhuyengiang Jul 19, 2024
57c20ca
Merge branch 'qdp' of https://github.com/qiboteam/qibo into qdp
khanhuyengiang Jul 19, 2024
cec4b0b
docs: added docstring for OSD
khanhuyengiang Jul 19, 2024
6d00058
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 19, 2024
97f38fb
change `np.math` to `math`
renatomello Jul 19, 2024
332ba3f
revert last commit
renatomello Jul 19, 2024
f281af1
revert `S` to `sympy`
renatomello Jul 19, 2024
e61575b
Update src/qibo/tomography/gate_set_tomography.py
renatomello Jul 19, 2024
5843470
Update src/qibo/tomography/gate_set_tomography.py
renatomello Jul 19, 2024
5180581
docstring modifications
renatomello Jul 19, 2024
aa2488c
Merge branch 'Gate-set-tomography' of github.com:qiboteam/qibo into G…
renatomello Jul 19, 2024
7be2949
more docstring fixing
renatomello Jul 19, 2024
fde251d
remove hidden functions from `.rst`
renatomello Jul 19, 2024
9351879
modifications in the api ref
renatomello Jul 19, 2024
e3730a4
fix api ref
renatomello Jul 19, 2024
8a6543f
fix test
renatomello Jul 19, 2024
38451be
cover tests
Canoming Jul 19, 2024
1724570
remove `Number` type dependency
Canoming Jul 19, 2024
6080581
fix tests maybe
renatomello Jul 20, 2024
ae403e2
Merge pull request #1106 from qiboteam/Gate-set-tomography
renatomello Jul 20, 2024
1f9ba68
Merge branch 'master' into deprecation
renatomello Jul 20, 2024
2fbc209
Merge branch 'master' into docs
renatomello Jul 20, 2024
07d0622
Merge branch 'master' into qft
renatomello Jul 20, 2024
7700b3c
Merge branch 'master' into quantum_network
renatomello Jul 20, 2024
730ee54
remove class
renatomello Jul 20, 2024
70b755f
adding qibojit deps to docs
scarrazza 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
c598c67
Merge pull request #1244 from qiboteam/quantum_network
renatomello Jul 20, 2024
e085386
Merge branch 'master' into deprecation
renatomello Jul 20, 2024
0e25e86
Merge branch 'master' into docs
renatomello Jul 20, 2024
ff1597b
Merge branch 'master' into qft
renatomello Jul 20, 2024
9de20bc
feat: cliffordizing GPI2 according to parameter
MatteoRobbiati Jul 22, 2024
a8efdfd
Fix looping behavior
csookim Jul 22, 2024
44d8103
Test modified sabre
csookim Jul 22, 2024
d97dda6
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 22, 2024
a3ca9d1
Update _route_to_nearest_gate doc
csookim Jul 23, 2024
c654f85
update changes
Jul 23, 2024
b96b7c8
update doc
Jul 23, 2024
eac280c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 23, 2024
4179247
Update threshold
csookim Jul 23, 2024
43f18ea
change func name
Jul 23, 2024
9a05f87
add test_sabre_shortest_path_routing
Jul 23, 2024
3318bef
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 23, 2024
0d7c7b0
Adding contact mail to README.md
scarrazza Jul 24, 2024
6bcc771
fix: remove links to dbi tutorials
MatteoRobbiati Jul 24, 2024
5d73585
Update README.md
scarrazza Jul 24, 2024
b1c92b3
Merge pull request #1401 from qiboteam/addmailreadme
scarrazza Jul 24, 2024
d8cc501
Merge pull request #1395 from qiboteam/deprecation
scarrazza Jul 24, 2024
4a3b371
Merge branch 'master' into qft
renatomello Jul 25, 2024
560c4de
Merge branch 'master' into docs
renatomello Jul 25, 2024
8513ff0
Merge branch 'master' into gpi2_cliff
AlejandroSopena Jul 26, 2024
3f471a7
cupy.ndarray to int
AlejandroSopena Jul 26, 2024
82339c7
Update src/qibo/transpiler/router.py
csookim Jul 29, 2024
129e41d
Update src/qibo/transpiler/router.py
csookim Jul 29, 2024
10ae1ee
Update src/qibo/transpiler/router.py
csookim Jul 29, 2024
7061fb2
Update src/qibo/transpiler/router.py
csookim Jul 29, 2024
beebaeb
Update tests/test_transpiler_router.py
csookim Jul 29, 2024
be4060f
update test_sabre_shortest_path_routing()
Jul 29, 2024
6eaf3cc
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 29, 2024
aae31dd
update test_sabre_shortest_path_routing()
Jul 29, 2024
5f4da49
Update README.md
scarrazza Jul 29, 2024
2c426db
update test_sabre_looping()
Jul 29, 2024
0c33ba5
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 29, 2024
256ba0b
Merge pull request #1404 from qiboteam/clifford_noise
renatomello Jul 29, 2024
15e3bce
add added_swaps / circuit equivalence test
Jul 29, 2024
90fa948
Merge pull request #1399 from qiboteam/gpi2_cliff
renatomello Jul 29, 2024
eafec2a
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 29, 2024
cc3f08f
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Jul 29, 2024
381ce09
Merge pull request #1406 from qiboteam/pre-commit-ci-update-config
scarrazza Jul 30, 2024
26aa661
Merge pull request #1394 from qiboteam/docs
MatteoRobbiati Jul 30, 2024
88587fe
Merge branch 'master' into docs-warnings
MatteoRobbiati Jul 30, 2024
d8cae9f
Merge branch 'master' into qft
MatteoRobbiati Jul 30, 2024
e40eb1c
Merge pull request #1393 from qiboteam/qft
renatomello Jul 30, 2024
fb64fcf
Merge pull request #1402 from qiboteam/docs-warnings
renatomello Jul 30, 2024
1513455
fix seed of test
renatomello Jul 30, 2024
ed06f01
change shape
renatomello Jul 30, 2024
f3a0955
Merge branch 'master' into fix_dbi_notebook
renatomello Jul 31, 2024
715339f
Merge pull request #1378 from qiboteam/fix_dbi_notebook
renatomello Jul 31, 2024
1f5cd88
feat: Remove non-native backends explicit listing
alecandido Jun 20, 2024
da1fd67
fix: List external providers explicitly for backend discovery
alecandido Jun 20, 2024
cda6548
fix: Fix error referring to automatic backends list
alecandido Jun 20, 2024
df7cef5
fix: Reraise error when the module not found is not the backend provider
alecandido Jun 20, 2024
a55e733
fix: Check for the package name, not the backend name
alecandido Jun 20, 2024
a314126
fix: Disable pylint error for unrecognized string
alecandido Jun 20, 2024
9db9b66
Merge pull request #1398 from qiboteam/router_sabre
Simone-Bordoni Jul 31, 2024
1da5faf
fix seed second test
renatomello Jul 31, 2024
2724a4c
fix seed
renatomello Jul 31, 2024
83a8afd
change seed passing
renatomello Aug 1, 2024
7b085fe
Merge branch 'master' into fix_test
renatomello Aug 1, 2024
64d78bc
Merge pull request #1407 from qiboteam/fix_test
scarrazza Aug 2, 2024
7dd6d5c
increasing version
scarrazza Aug 2, 2024
9f1f3dd
do not update torch
scarrazza Aug 3, 2024
6d67625
Merge pull request #1410 from qiboteam/fixqulacsdeps
scarrazza Aug 3, 2024
540d2b6
Merge pull request #1368 from qiboteam/remove-external-backends
alecandido Aug 5, 2024
ccd8aa3
Merge branch 'master' of https://github.com/qiboteam/qibo into qdp
khanhuyengiang Aug 6, 2024
bfa0f59
Merge remote-tracking branch 'origin/qdp' into dev
khanhuyengiang Nov 29, 2024
5b23bd7
merge history
khanhuyengiang Nov 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi

watch_file flake.nix
watch_file flake.lock
if ! use flake . --impure; then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/general-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: General issue
about: Default GitHub template issue
title: ''
labels: ''
assignees: ''

---
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/general-purprose-issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
name: General purprose issue
about: ''
title: ''
labels: ''
assignees: ''

---
8 changes: 8 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
threshold: 0.5%

github_checks:
annotations: false
6 changes: 6 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

Checklist:
- [ ] Reviewers confirm new code works as expected.
- [ ] Tests are passing.
- [ ] Coverage does not decrease.
- [ ] Documentation is updated.
3 changes: 3 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
template: |
## What's Changed
$CHANGES
24 changes: 24 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# A single CI script with github workflow
name: Build wheels and deploy

on:
workflow_dispatch:
push:
merge_group:
release:
types:
- published

jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [ 3.9, '3.10', '3.11', '3.12']
uses: qiboteam/workflows/.github/workflows/deploy-pip-poetry.yml@v1
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
publish: ${{ github.event_name == 'release' && github.event.action == 'published' && matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' }}
poetry-extras: "--with tests,docs"
secrets: inherit
38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: docs

on:
workflow_dispatch:
push:
branches: [master]
tags:
- "*"

jobs:
evaluate-label:
runs-on: ubuntu-latest
outputs:
label: ${{ steps.label_step.outputs.version}}
steps:
- name: checks for the label
id: label_step
run: |
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
echo "version=latest" >> $GITHUB_OUTPUT
fi
if [[ "${{ github.ref_type }}" == "branch" ]] && [[ "${{ github.ref }}" != "refs/heads/master" ]]; then
exit 1
fi
if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "version=stable" >> $GITHUB_OUTPUT
fi

deploy-docs:
needs: [evaluate-label]
uses: qiboteam/workflows/.github/workflows/deploy-ghpages-latest-stable.yml@v1
with:
python-version: "3.10"
package-manager: "poetry"
dependency-path: "**/poetry.lock"
trigger-label: "${{needs.evaluate-label.outputs.label}}"
project: qibo
poetry-extras: --with docs
24 changes: 24 additions & 0 deletions .github/workflows/rules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# A single CI script with github workflow
name: Tests

on:
workflow_dispatch:
push:
merge_group:
pull_request:
types: [labeled, opened] # opened is required to allow external contributors

jobs:
build:
if: contains(github.event.pull_request.labels.*.name, 'run-workflow') || github.event_name == 'push'
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.9, "3.10", "3.11", "3.12"]
uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@v1
with:
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}
doctests: ${{ matrix.os == 'ubuntu-latest'}}
poetry-extras: "--with tests,docs"
secrets: inherit
23 changes: 23 additions & 0 deletions .github/workflows/selfhosted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# CI workflow that runs on selfhosted GPU
name: Tests with gpu

on:
pull_request:
types: [labeled]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
build:
if: contains(join(github.event.pull_request.labels.*.name), 'run-on')
uses: qiboteam/workflows/.github/workflows/selfhosted.yml@v1
with:
used-labels: ${{ toJSON(github.event.pull_request.labels.*.name) }}
python-version: "3.10"
artifact-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
poetry-extras: "--with cuda11,tests"

secrets:
repo_token: ${{ secrets.GITHUB_TOKEN }}
46 changes: 13 additions & 33 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
# Byte-compiled / optimized / DLL files
.vscode
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so
*.o
*.cudao

# Distribution / packaging
.Python
Expand All @@ -20,6 +23,7 @@ parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down Expand Up @@ -72,7 +76,6 @@ instance/
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
Expand All @@ -83,9 +86,7 @@ profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
Expand All @@ -94,24 +95,7 @@ ipython_config.py
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
.pdm.toml
.pdm-python
.pdm-build/

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
Expand All @@ -124,6 +108,7 @@ celerybeat.pid
# Environments
.env
.venv
.idea
env/
venv/
ENV/
Expand All @@ -148,15 +133,10 @@ dmypy.json
# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/
# tmp files
tmp/
tmp.npy

# Cython debug symbols
cython_debug/

# PyCharm
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
# Mac
.DS_Store
.devenv
Loading
Loading