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

Update dependencies #133

Merged
merged 3 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: no-commit-to-branch
args: [--branch, master]
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.1.14"
rev: "v0.2.0"
hooks:
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
Expand Down
2 changes: 1 addition & 1 deletion docs/apidoc/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ AQTOptions
==========

.. autopydantic_model:: qiskit_aqt_provider.aqt_options.AQTOptions
:exclude-members: update_options
:exclude-members: update_options, model_computed_fields
:model-show-json: False
:model-show-validator-members: False
:model-show-validator-summary: False
Expand Down
1 change: 1 addition & 0 deletions docs/apidoc/resource.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ AQTResource
:show-inheritance:

.. autopydantic_model:: qiskit_aqt_provider.api_models.ResourceId
:exclude-members: model_computed_fields
:model-show-json: False
:model-show-validator-members: False
:model-show-validator-summary: False
Expand Down
3 changes: 3 additions & 0 deletions docs/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ This guide covers usage of the Qiskit AQT provider package with the AQT cloud po
.. jupyter-execute::
:hide-code:

import warnings
warnings.simplefilter("ignore", category=DeprecationWarning)

import qiskit
from math import pi

Expand Down
556 changes: 266 additions & 290 deletions poetry.lock

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ typing-extensions = ">=4.0.0"

[tool.poetry.group.dev.dependencies]
autodoc-pydantic = "^2.0.1"
black = "<24.1.0" # pin until koxudaxi/datamodel-code-generator/#1821 is resolved
coverage = "^7.2.1"
datamodel-code-generator = "^0.25.2"
datamodel-code-generator = "^0.25.3"
hypothesis = "^6.82.0"
interrogate = "^1.5.0"
ipykernel = "^6.22.0"
Expand All @@ -81,7 +80,7 @@ qiskit-experiments = "^0.5.4"
qiskit-sphinx-theme = ">=1.16.0"
qiskit-terra = {version = ">=0.23.2", extras = ["visualization"]}
rich = "^13.5.3"
ruff = "^0.1.14"
ruff = "^0.2.0"
sphinx = "^7"
tomlkit = "^0.12.1"
typer = "^0.7.0"
Expand Down Expand Up @@ -223,7 +222,7 @@ ignore = [
"PT011", # allow pytest.raises without match=
]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.coverage.run]
Expand Down
214 changes: 101 additions & 113 deletions qiskit_aqt_provider/api_models_generated.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,14 +215,12 @@ class Circuit(RootModel[List[OperationModel]]):
root: Annotated[
List[OperationModel],
Field(
examples=[
[
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{"operation": "R", "phi": 0.25, "qubit": 1, "theta": 0.5},
{"operation": "RXX", "qubits": [0, 1], "theta": 0.5},
{"operation": "MEASURE"},
]
],
examples=[[
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{"operation": "R", "phi": 0.25, "qubit": 1, "theta": 0.5},
{"operation": "RXX", "qubits": [0, 1], "theta": 0.5},
{"operation": "MEASURE"},
]],
max_length=10000,
min_length=1,
title="Circuit",
Expand Down Expand Up @@ -342,27 +340,25 @@ class ResultResponse(
"job_type": "quantum_circuit",
"label": "Example computation",
"payload": {
"circuits": [
{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}
]
"circuits": [{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}]
},
},
"response": {"status": "queued"},
Expand All @@ -379,27 +375,25 @@ class ResultResponse(
"job_type": "quantum_circuit",
"label": "Example computation",
"payload": {
"circuits": [
{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}
]
"circuits": [{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}]
},
},
"response": {"finished_count": 0, "status": "ongoing"},
Expand All @@ -417,27 +411,25 @@ class ResultResponse(
"job_type": "quantum_circuit",
"label": "Example computation",
"payload": {
"circuits": [
{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}
]
"circuits": [{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}]
},
},
"response": {
Expand All @@ -458,27 +450,25 @@ class ResultResponse(
"job_type": "quantum_circuit",
"label": "Example computation",
"payload": {
"circuits": [
{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}
]
"circuits": [{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}]
},
},
"response": {"status": "cancelled"},
Expand All @@ -496,27 +486,25 @@ class ResultResponse(
"job_type": "quantum_circuit",
"label": "Example computation",
"payload": {
"circuits": [
{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}
]
"circuits": [{
"number_of_qubits": 2,
"quantum_circuit": [
{"operation": "RZ", "phi": 0.5, "qubit": 0},
{
"operation": "R",
"phi": 0.25,
"qubit": 1,
"theta": 0.5,
},
{
"operation": "RXX",
"qubits": [0, 1],
"theta": 0.5,
},
{"operation": "MEASURE"},
],
"repetitions": 5,
}]
},
},
"response": {
Expand Down