Skip to content

Commit a90c018

Browse files
authored
Merge pull request #1231 from qiboteam/py3.12
Support Python 3.12
2 parents 76bd0f2 + 2dee381 commit a90c018

File tree

14 files changed

+771
-1672
lines changed

14 files changed

+771
-1672
lines changed

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest, windows-latest]
17-
python-version: [ 3.9, '3.10', '3.11']
17+
python-version: [ 3.9, '3.10', '3.11', '3.12']
1818
uses: qiboteam/workflows/.github/workflows/deploy-pip-poetry.yml@main
1919
with:
2020
os: ${{ matrix.os }}

.github/workflows/rules.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest, windows-latest]
17-
python-version: [ 3.9, '3.10', '3.11']
17+
python-version: [ 3.9, '3.10', '3.11', '3.12']
1818
uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@main
1919
with:
2020
os: ${{ matrix.os }}

doc/source/api-reference/qibo.rst

-8
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,6 @@ Feedback-based Algorithm for Quantum Optimization (FALQON)
167167
:member-order: bysource
168168

169169

170-
Style-based Quantum Generative Adversarial Network (style-qGAN)
171-
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
172-
173-
.. autoclass:: qibo.models.qgan.StyleQGAN
174-
:members:
175-
:member-order: bysource
176-
177-
178170
Grover's Algorithm
179171
""""""""""""""""""
180172

doc/source/code-examples/advancedexamples.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ the following script optimizes the parameters of two rotations so that the circu
702702
output matches a target state using the fidelity as the corresponding loss
703703
function.
704704

705-
.. testcode::
705+
.. code-block:: python
706706
707707
import qibo
708708
qibo.set_backend("tensorflow")

flake.lock

+10-95
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
44
systems.url = "github:nix-systems/default";
55
devenv.url = "github:cachix/devenv";
6-
nixpkgs-python.url = "github:cachix/nixpkgs-python";
76
};
87

98
outputs = {
@@ -46,7 +45,6 @@
4645
install.enable = true;
4746
install.groups = ["dev"];
4847
};
49-
version = "3.11";
5048
};
5149
}
5250
];

0 commit comments

Comments
 (0)