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

Support Python 3.12 #1231

Merged
merged 22 commits into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
1edc01d
build: Temporary switch to qibojit branch for py3.12 support
alecandido Feb 28, 2024
1f10f29
build: Add explicit setuptools dependency, to compensate the missing …
alecandido Feb 28, 2024
c9b0ee5
chore: Move Flake to NixOS unstable, upgrade shell to py3.12
alecandido Feb 28, 2024
a685b17
ci: Extend workflows to py3.12
alecandido Feb 28, 2024
ad3b9fc
ci: Update Pylint version
alecandido Feb 28, 2024
f94c9b7
fix: Follow local nixpkgs ref
alecandido Mar 11, 2024
75612a6
build: Sync all branches for py3.12
alecandido Mar 11, 2024
3c45b32
build: Upgrade Nix shell to use Poetry 1.8
alecandido Mar 14, 2024
203c79a
fix: Attempt fix reducing complex size
alecandido Mar 14, 2024
5375e35
fix: Temporarily drop cvxpy
alecandido Mar 14, 2024
f9d53c4
chore: Poetry lock
alecandido Mar 14, 2024
c5fda23
fix: Restore original complexes
alecandido Mar 14, 2024
31a5a3e
feat!: Drop the QGAN model and related tests and docs
alecandido Apr 10, 2024
682d50b
chore: Poetry lock
alecandido Apr 10, 2024
96a43bd
docs: Downgrade example from doctest to just text
alecandido Apr 10, 2024
9b6c04a
docs: Downgrade further example to code block
alecandido Apr 10, 2024
aa151e8
chore: Polish environment files
alecandido Apr 10, 2024
edd0b56
chore: Poetry lock
alecandido Apr 10, 2024
9d2fae5
Update src/qibo/quantum_info/metrics.py
alecandido Apr 11, 2024
02e737f
fix: Partially restore autoformatted docstrings
alecandido Apr 11, 2024
0006411
chore: Poetry lock
alecandido Apr 11, 2024
2dee381
test: Exclude diamond norm from coverage
alecandido Apr 22, 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
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [ 3.9, '3.10', '3.11']
python-version: [ 3.9, '3.10', '3.11', '3.12']
uses: qiboteam/workflows/.github/workflows/deploy-pip-poetry.yml@main
with:
os: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [ 3.9, '3.10', '3.11']
python-version: [ 3.9, '3.10', '3.11', '3.12']
uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@main
with:
os: ${{ matrix.os }}
Expand Down
8 changes: 0 additions & 8 deletions doc/source/api-reference/qibo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,6 @@ Feedback-based Algorithm for Quantum Optimization (FALQON)
:member-order: bysource


Style-based Quantum Generative Adversarial Network (style-qGAN)
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

.. autoclass:: qibo.models.qgan.StyleQGAN
:members:
:member-order: bysource


Grover's Algorithm
""""""""""""""""""

Expand Down
2 changes: 1 addition & 1 deletion doc/source/code-examples/advancedexamples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ the following script optimizes the parameters of two rotations so that the circu
output matches a target state using the fidelity as the corresponding loss
function.

.. testcode::
.. code-block:: python

import qibo
qibo.set_backend("tensorflow")
Expand Down
105 changes: 10 additions & 95 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default";
devenv.url = "github:cachix/devenv";
nixpkgs-python.url = "github:cachix/nixpkgs-python";
};

outputs = {
Expand Down Expand Up @@ -46,7 +45,6 @@
install.enable = true;
install.groups = ["dev"];
};
version = "3.11";
};
}
];
Expand Down
Loading
Loading