nqct 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. nqct-0.2.0/.github/workflows/ci.yml +37 -0
  2. nqct-0.2.0/.github/workflows/deploy-docs.yaml +67 -0
  3. nqct-0.2.0/.github/workflows/release.yaml +53 -0
  4. nqct-0.2.0/.gitignore +46 -0
  5. nqct-0.2.0/.pre-commit-config.yaml +15 -0
  6. nqct-0.2.0/.python-version +1 -0
  7. nqct-0.2.0/CHANGELOG.md +82 -0
  8. nqct-0.2.0/LICENSE +203 -0
  9. nqct-0.2.0/PKG-INFO +127 -0
  10. nqct-0.2.0/README.md +81 -0
  11. nqct-0.2.0/doc-sphinx/README.md +142 -0
  12. nqct-0.2.0/doc-sphinx/source/_static/nqct-icon.png +0 -0
  13. nqct-0.2.0/doc-sphinx/source/_static/nqct.png +0 -0
  14. nqct-0.2.0/doc-sphinx/source/conf.py +43 -0
  15. nqct-0.2.0/doc-sphinx/source/examples/Basic.ipynb +119 -0
  16. nqct-0.2.0/doc-sphinx/source/examples/index.rst +17 -0
  17. nqct-0.2.0/doc-sphinx/source/index.rst +17 -0
  18. nqct-0.2.0/doc-sphinx/source/reference/index.rst +12 -0
  19. nqct-0.2.0/doc-sphinx/source/reference/quantumsession.rst +11 -0
  20. nqct-0.2.0/docs/PLATFORM_REFERENCE.md +16 -0
  21. nqct-0.2.0/docs/README.md +216 -0
  22. nqct-0.2.0/examples/invoke_function.py +41 -0
  23. nqct-0.2.0/examples/sdk_walkthrough.ipynb +406 -0
  24. nqct-0.2.0/examples/submit_job.py +43 -0
  25. nqct-0.2.0/nqct/__init__.py +42 -0
  26. nqct-0.2.0/nqct/_version.py +3 -0
  27. nqct-0.2.0/nqct/auth/__init__.py +21 -0
  28. nqct-0.2.0/nqct/auth/credentials.py +83 -0
  29. nqct-0.2.0/nqct/client.py +296 -0
  30. nqct-0.2.0/nqct/exceptions.py +55 -0
  31. nqct-0.2.0/nqct/execution/__init__.py +1 -0
  32. nqct-0.2.0/nqct/execution/polling.py +37 -0
  33. nqct-0.2.0/nqct/httpss/__init__.py +5 -0
  34. nqct-0.2.0/nqct/httpss/pagination.py +29 -0
  35. nqct-0.2.0/nqct/httpss/session.py +186 -0
  36. nqct-0.2.0/nqct/models/__init__.py +30 -0
  37. nqct-0.2.0/nqct/models/_http.py +15 -0
  38. nqct-0.2.0/nqct/models/backend.py +65 -0
  39. nqct-0.2.0/nqct/models/execution.py +117 -0
  40. nqct-0.2.0/nqct/models/function.py +86 -0
  41. nqct-0.2.0/nqct/models/job.py +153 -0
  42. nqct-0.2.0/nqct/py.typed +0 -0
  43. nqct-0.2.0/nqct/resources/__init__.py +11 -0
  44. nqct-0.2.0/nqct/resources/backends.py +63 -0
  45. nqct-0.2.0/nqct/resources/functions.py +46 -0
  46. nqct-0.2.0/nqct/resources/jobs.py +180 -0
  47. nqct-0.2.0/nqct/utils/QuantumSession.py +183 -0
  48. nqct-0.2.0/nqct/utils/__init__.py +1 -0
  49. nqct-0.2.0/pyproject.toml +119 -0
  50. nqct-0.2.0/tests/__init__.py +1 -0
  51. nqct-0.2.0/tests/fixtures/api_responses.py +162 -0
  52. nqct-0.2.0/tests/integration/test_live_api.py +66 -0
  53. nqct-0.2.0/tests/manual/Main.ipynb +218 -0
  54. nqct-0.2.0/tests/unit/__init__.py +1 -0
  55. nqct-0.2.0/tests/unit/test_client.py +97 -0
  56. nqct-0.2.0/tests/unit/test_exceptions.py +26 -0
  57. nqct-0.2.0/tests/unit/test_execution_config.py +121 -0
  58. nqct-0.2.0/tests/unit/test_jobs_submit.py +188 -0
  59. nqct-0.2.0/tests/unit/test_pagination.py +16 -0
  60. nqct-0.2.0/tests/unit/test_quantum_session.py +180 -0
  61. nqct-0.2.0/tests/unit/test_resources.py +310 -0
  62. nqct-0.2.0/tests/unit/test_session.py +189 -0
  63. nqct-0.2.0/uv.lock +3136 -0
@@ -0,0 +1,37 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ python-version: ["3.10", "3.11", "3.12"]
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v5
21
+ with:
22
+ enable-cache: true
23
+
24
+ - name: Set up Python
25
+ run: uv python install ${{ matrix.python-version }}
26
+
27
+ - name: Install package
28
+ run: uv sync --extra dev
29
+
30
+ - name: Ruff
31
+ run: uv run ruff check nqct tests
32
+
33
+ - name: Mypy
34
+ run: uv run mypy nqct
35
+
36
+ - name: Pytest
37
+ run: uv run pytest tests/unit --cov=nqct --cov-report=term-missing
@@ -0,0 +1,67 @@
1
+ name: Build and Deploy Sphinx Documentation
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main # Change this to the default branch of your repository (e.g., master or main)
7
+ pull_request:
8
+ branches:
9
+ - main # Optional: deploy when a PR is made to main
10
+
11
+ permissions:
12
+ contents: write
13
+
14
+ jobs:
15
+ deploy:
16
+ runs-on: ubuntu-latest
17
+
18
+ steps:
19
+ - name: Checkout repository
20
+ uses: actions/checkout@v2
21
+
22
+ - name: Install Pandoc and LibGLU
23
+ run: |
24
+ sudo apt-get update
25
+ sudo apt-get install -y pandoc
26
+ sudo apt-get install -y libglu1-mesa libxi6 libxrender1
27
+ sudo apt-get install -y python3-pyqt5
28
+
29
+ - name: Install Qt dependencies
30
+ run: |
31
+ sudo apt-get update
32
+ sudo apt-get install -y \
33
+ libegl1 \
34
+ libgl1 \
35
+ libxkbcommon-x11-0 \
36
+ libxcb-cursor0 \
37
+ libxcb-xinerama0 \
38
+ libxcb-icccm4 \
39
+ libxcb-image0 \
40
+ libxcb-keysyms1 \
41
+ libxcb-randr0 \
42
+ libxcb-render-util0 \
43
+ libxcb-shape0 \
44
+ libxcb-sync1 \
45
+ libxcb-xfixes0
46
+
47
+ - name: Set up Python
48
+ uses: actions/setup-python@v2
49
+ with:
50
+ python-version: '3.11'
51
+
52
+ - name: Install dependencies
53
+ run: |
54
+ python -m pip install --upgrade pip
55
+ pip install -e .
56
+ pip install sphinx sphinx_rtd_theme nbsphinx
57
+
58
+ - name: Build the documentation
59
+ run: |
60
+ sphinx-build -b html doc-sphinx/source doc-sphinx/_build/html
61
+
62
+ - name: Deploy to GitHub Pages
63
+ uses: peaceiris/actions-gh-pages@v3
64
+ with:
65
+ publish_dir: doc-sphinx/_build/html # Path to your built HTML docs
66
+ github_token: ${{ secrets.GITHUB_TOKEN }} # Token provided automatically by GitHub
67
+ publish_branch: gh-pages # The branch that will host your docs
@@ -0,0 +1,53 @@
1
+ name: Release nqct
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build distribution
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - name: Check out release
14
+ uses: actions/checkout@v6
15
+
16
+ - name: Set up Python
17
+ uses: actions/setup-python@v6
18
+ with:
19
+ python-version: "3.x"
20
+
21
+ - name: Install build
22
+ run: python -m pip install --upgrade build
23
+
24
+ - name: Build distributions
25
+ run: python -m build
26
+
27
+ - name: Store distributions
28
+ uses: actions/upload-artifact@v5
29
+ with:
30
+ name: python-package-distributions
31
+ path: dist/
32
+
33
+ publish:
34
+ name: Publish to PyPI
35
+ needs: build
36
+ runs-on: ubuntu-latest
37
+
38
+ environment:
39
+ name: pypi
40
+ url: https://pypi.org/p/nqct
41
+
42
+ permissions:
43
+ id-token: write
44
+
45
+ steps:
46
+ - name: Download distributions
47
+ uses: actions/download-artifact@v6
48
+ with:
49
+ name: python-package-distributions
50
+ path: dist/
51
+
52
+ - name: Publish to PyPI
53
+ uses: pypa/gh-action-pypi-publish@release/v1
nqct-0.2.0/.gitignore ADDED
@@ -0,0 +1,46 @@
1
+ # Byte-compiled / cache
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+
7
+ # Virtual environments
8
+ .venv/
9
+ venv/
10
+ env/
11
+
12
+ # Tooling
13
+ .mypy_cache/
14
+ .ruff_cache/
15
+ .pytest_cache/
16
+ .coverage
17
+ htmlcov/
18
+ dist/
19
+ build/
20
+ *.egg-info/
21
+
22
+ # IDE / editor
23
+ .idea/
24
+ .vscode/
25
+ .cursor/
26
+ *.swp
27
+
28
+ # OS
29
+ .DS_Store
30
+
31
+ # Local env (never commit secrets)
32
+ .env
33
+ .env.*
34
+
35
+ # Agent / local scaffolding (never commit)
36
+ .worktrees/
37
+ .superpowers/
38
+ docs/superpowers/
39
+ superpowers/
40
+ AGENTS.md
41
+ temp/
42
+
43
+ # Sphinx documentation
44
+ doc-sphinx/build/
45
+ doc-sphinx/source/generated/
46
+ doc-sphinx/source/_autosummary/
@@ -0,0 +1,15 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.6.9
4
+ hooks:
5
+ - id: ruff
6
+ args: [--fix]
7
+ - id: ruff-format
8
+ - repo: https://github.com/pre-commit/mirrors-mypy
9
+ rev: v1.11.2
10
+ hooks:
11
+ - id: mypy
12
+ additional_dependencies:
13
+ - httpx>=0.27
14
+ - pydantic>=2.5
15
+ - types-requests
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,82 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ### Added
11
+
12
+ - `Job.download_bundle()` / `QuantumSession.download_bundle()` for `GET /jobs/{id}/artifacts/bundle` (stream hardware result zip to a local path).
13
+ - Walkthrough cells demonstrating hardware artifact bundle download.
14
+ - Hardware `shot_repeat` (software repeat) on `submit_job` / `build_execution_config` / `HardwareExecutionConfig` (integer ≥ 1; omitted when unset).
15
+ - Hardware measurement kwargs on `submit_job` / `build_execution_config`: `acquisition_type` (`Discrimination` | `Integration` | `Raw`) and `averaging` (`AverageRepetitions` | `SingleShotCounts`), with case-insensitive normalization.
16
+ - `HardwareExecutionConfig.acquisition_type` / `.averaging` fields aligned with production `POST /jobs`.
17
+ - `QuantumSession.set_acquisition_type` / `set_averaging_type` wired through to `submit_job`.
18
+ - Walkthrough cell demonstrating hardware `acquisition_type` / `averaging` submit.
19
+ - `source="pulse_designer"` on `submit_job` / `JobsManager.submit` (POST /jobs allowlist).
20
+ - Hardware `execution_config` helpers: `qubit_mapping`, `gate_substitutions`, `readout_mapping`, `pulse_calibration_id`.
21
+ - Pydantic models `ExecutionConfig`, `QubitMappingEntry`, and related types in `nqct.models`.
22
+ - `Job.program`, `Job.execution_config`, and `Job.metadata` fields aligned with production `JobResponse`.
23
+
24
+ ### Changed
25
+
26
+ - Default API URL is production `https://api.nqct.org/api/v1` when `url=` / `NQCT_URL` are unset; `save_account(api_key=...)` no longer requires `url`.
27
+ - `examples/sdk_walkthrough.ipynb` credential setup is a single `API_KEY` cell (save + client).
28
+ - `examples/sdk_walkthrough.ipynb` centers on direct QASM submit; function invoke section removed for now.
29
+ - README documents production API `https://api.nqct.org/api/v1` alongside local `nqct start`.
30
+ - README quick start leads with `submit_job`.
31
+ - `build_execution_config()` now constructs and validates `ExecutionConfig`/`SimulatorExecutionConfig`/`HardwareExecutionConfig` (via Pydantic) instead of hand-building dicts; invalid `qubit_mapping` entries or unknown fields now raise `pydantic.ValidationError`. `qubit_mapping` accepts `dict` or `QubitMappingEntry` items.
32
+ - `examples/sdk_walkthrough.ipynb` submit cell catches `JobFailedError`/`JobTimeoutError` around `job.wait()` and prints status + logs instead of raising.
33
+
34
+ ### Fixed
35
+
36
+ - `SimulatorExecutionConfig`/`HardwareExecutionConfig` now reject unknown fields (`extra="forbid"`), matching `QubitMappingEntry`.
37
+ - Package version in `pyproject.toml` aligned with changelog (`0.2.0`).
38
+ - `HTTPSession.stream_to_path` no longer raises a spurious `DecodingError` on gzip-encoded error bodies (was double-decoding a rebuilt `httpx.Response`).
39
+ - `HTTPSession.stream_to_path` now streams to a sibling temp file and atomically `os.replace`s it into `dest`, so a mid-download failure no longer leaves a truncated `dest` or destroys a prior good download.
40
+ - `examples/sdk_walkthrough.ipynb` bundle-download cell now `mkdir`s the `downloads` directory before calling `download_bundle`, since a non-existent directory target is otherwise treated as the destination file itself.
41
+
42
+ ## [0.2.0] - 2026-07-08
43
+
44
+ ### Added
45
+
46
+ - `JobsManager.submit()` / `NQCTClient.submit_job()` — `POST /jobs` with OpenQASM 3, `execution_config`, and `source` (`direct_qasm` | `api`).
47
+ - `Job.booking_bypass` and `Job.source` fields aligned with Unit 07 program-centric jobs API.
48
+ - `client.jobs(source=...)` filter parameter.
49
+ - Example `examples/submit_job.py`.
50
+
51
+ ### Changed
52
+
53
+ - Managed-backend circuit execution on the platform is async (`POST /circuits/submit`); use `submit_job()` instead of a sync `run_circuit()` helper (planned Phase 2).
54
+
55
+ ## [0.1.0] - 2026-07-03
56
+
57
+ ### Added
58
+
59
+ - Phase 1 MVP: credentials save/load, env discovery, `BackendsManager`, `JobsManager`, `FunctionsManager`.
60
+ - Resource models `Backend`, `Job`, `Function` with `job.wait()`, `job.result()`, `job.cancel()`, `function.invoke()`.
61
+ - `client.backends()`, `client.backend()`, `client.least_busy()`, `client.jobs()`, `client.job()`, `client.functions()`, `client.function()`.
62
+ - Unit tests with `respx` fixtures; integration test suite (`pytest -m integration`).
63
+ - Example script `examples/invoke_function.py`.
64
+ - [uv](https://docs.astral.sh/uv/) for local development and CI.
65
+
66
+ ### Changed
67
+
68
+ - Renamed repository from `nqct-runtime` to `nqct-sdk` (GitHub URLs, docs, Cursor rules).
69
+ - Bumped version to `0.1.0` (Phase 1 MVP).
70
+
71
+ ## [0.0.1] - 2026-07-01
72
+
73
+ ### Added
74
+
75
+ - Phase 0 bootstrap: `NQCTClient`, `HTTPSession`, credentials file helpers, exception hierarchy.
76
+ - Public aliases `Client` and `Runtime`.
77
+ - Unit tests, ruff, mypy, pytest, pre-commit, GitHub Actions CI.
78
+
79
+ [Unreleased]: https://github.com/NQCT-Australia/nqct-sdk/compare/v0.2.0...HEAD
80
+ [0.2.0]: https://github.com/NQCT-Australia/nqct-sdk/compare/v0.1.0...v0.2.0
81
+ [0.1.0]: https://github.com/NQCT-Australia/nqct-sdk/releases/tag/v0.1.0
82
+ [0.0.1]: https://github.com/NQCT-Australia/nqct-sdk/releases/tag/v0.0.1
nqct-0.2.0/LICENSE ADDED
@@ -0,0 +1,203 @@
1
+ Copyright 2026 NQCT Australia
2
+
3
+ Apache License
4
+ Version 2.0, January 2004
5
+ http://www.apache.org/licenses/
6
+
7
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
8
+
9
+ 1. Definitions.
10
+
11
+ "License" shall mean the terms and conditions for use, reproduction,
12
+ and distribution as defined by Sections 1 through 9 of this document.
13
+
14
+ "Licensor" shall mean the copyright owner or entity authorized by
15
+ the copyright owner that is granting the License.
16
+
17
+ "Legal Entity" shall mean the union of the acting entity and all
18
+ other entities that control, are controlled by, or are under common
19
+ control with that entity. For the purposes of this definition,
20
+ "control" means (i) the power, direct or indirect, to cause the
21
+ direction or management of such entity, whether by contract or
22
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
23
+ outstanding shares, or (iii) beneficial ownership of such entity.
24
+
25
+ "You" (or "Your") shall mean an individual or Legal Entity
26
+ exercising permissions granted by this License.
27
+
28
+ "Source" form shall mean the preferred form for making modifications,
29
+ including but not limited to software source code, documentation
30
+ source, and configuration files.
31
+
32
+ "Object" form shall mean any form resulting from mechanical
33
+ transformation or translation of a Source form, including but
34
+ not limited to compiled object code, generated documentation,
35
+ and conversions to other media types.
36
+
37
+ "Work" shall mean the work of authorship, whether in Source or
38
+ Object form, made available under the License, as indicated by a
39
+ copyright notice that is included in or attached to the work
40
+ (an example is provided in the Appendix below).
41
+
42
+ "Derivative Works" shall mean any work, whether in Source or Object
43
+ form, that is based on (or derived from) the Work and for which the
44
+ editorial revisions, annotations, elaborations, or other modifications
45
+ represent, as a whole, an original work of authorship. For the purposes
46
+ of this License, Derivative Works shall not include works that remain
47
+ separable from, or merely link (or bind by name) to the interfaces of,
48
+ the Work and Derivative Works thereof.
49
+
50
+ "Contribution" shall mean any work of authorship, including
51
+ the original version of the Work and any modifications or additions
52
+ to that Work or Derivative Works thereof, that is intentionally
53
+ submitted to Licensor for inclusion in the Work by the copyright owner
54
+ or by an individual or Legal Entity authorized to submit on behalf of
55
+ the copyright owner. For the purposes of this definition, "submitted"
56
+ means any form of electronic, verbal, or written communication sent
57
+ to the Licensor or its representatives, including but not limited to
58
+ communication on electronic mailing lists, source code control systems,
59
+ and issue tracking systems that are managed by, or on behalf of, the
60
+ Licensor for the purpose of discussing and improving the Work, but
61
+ excluding communication that is conspicuously marked or otherwise
62
+ designated in writing by the copyright owner as "Not a Contribution."
63
+
64
+ "Contributor" shall mean Licensor and any individual or Legal Entity
65
+ on behalf of whom a Contribution has been received by Licensor and
66
+ subsequently incorporated within the Work.
67
+
68
+ 2. Grant of Copyright License. Subject to the terms and conditions of
69
+ this License, each Contributor hereby grants to You a perpetual,
70
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
71
+ copyright license to reproduce, prepare Derivative Works of,
72
+ publicly display, publicly perform, sublicense, and distribute the
73
+ Work and such Derivative Works in Source or Object form.
74
+
75
+ 3. Grant of Patent License. Subject to the terms and conditions of
76
+ this License, each Contributor hereby grants to You a perpetual,
77
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
78
+ (except as stated in this section) patent license to make, have made,
79
+ use, offer to sell, sell, import, and otherwise transfer the Work,
80
+ where such license applies only to those patent claims licensable
81
+ by such Contributor that are necessarily infringed by their
82
+ Contribution(s) alone or by combination of their Contribution(s)
83
+ with the Work to which such Contribution(s) was submitted. If You
84
+ institute patent litigation against any entity (including a
85
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
86
+ or a Contribution incorporated within the Work constitutes direct
87
+ or contributory patent infringement, then any patent licenses
88
+ granted to You under this License for that Work shall terminate
89
+ as of the date such litigation is filed.
90
+
91
+ 4. Redistribution. You may reproduce and distribute copies of the
92
+ Work or Derivative Works thereof in any medium, with or without
93
+ modifications, and in Source or Object form, provided that You
94
+ meet the following conditions:
95
+
96
+ (a) You must give any other recipients of the Work or Derivative
97
+ Works a copy of this License; and
98
+
99
+ (b) You must cause any modified files to carry prominent notices
100
+ stating that You changed the files; and
101
+
102
+ (c) You must retain, in the Source form of any Derivative Works
103
+ that You distribute, all copyright, patent, trademark, and
104
+ attribution notices from the Source form of the Work,
105
+ excluding those notices that do not pertain to any part of
106
+ the Derivative Works; and
107
+
108
+ (d) If the Work includes a "NOTICE" text file as part of its
109
+ distribution, then any Derivative Works that You distribute
110
+ must include a readable copy of the attribution notices
111
+ contained within such NOTICE file, excluding those notices
112
+ that do not pertain to any part of the Derivative Works,
113
+ in at least one of the following places: within a NOTICE text
114
+ file distributed as part of the Derivative Works; within the
115
+ Source form or documentation, if provided along with the
116
+ Derivative Works; or, within a display generated by the
117
+ Derivative Works, if and wherever such third-party notices
118
+ normally appear. The contents of the NOTICE file are for
119
+ informational purposes only and do not modify the License.
120
+ You may add Your own attribution notices within Derivative
121
+ Works that You distribute, alongside or as an addendum to
122
+ the NOTICE text from the Work, provided that such additional
123
+ attribution notices cannot be construed as modifying the License.
124
+
125
+ You may add Your own copyright statement to Your modifications and
126
+ may provide additional or different license terms and conditions
127
+ for use, reproduction, or distribution of Your modifications, or
128
+ for any such Derivative Works as a whole, provided Your use,
129
+ reproduction, and distribution of the Work otherwise complies with
130
+ the conditions stated in this License.
131
+
132
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
133
+ any Contribution intentionally submitted for inclusion in the Work
134
+ by You to the Licensor shall be under the terms and conditions of
135
+ this License, without any additional terms or conditions.
136
+ Notwithstanding the above, nothing herein shall supersede or modify
137
+ the terms of any separate license agreement you may have executed
138
+ with Licensor regarding such Contributions.
139
+
140
+ 6. Trademarks. This License does not grant permission to use the trade
141
+ names, trademarks, service marks, or product names of the Licensor,
142
+ except as required for reasonable and customary use in describing
143
+ the origin of the Work and reproducing the content of the NOTICE file.
144
+
145
+ 7. Disclaimer of Warranty. Unless required by applicable law or
146
+ agreed to in writing, Licensor provides the Work (and each
147
+ Contributor provides its Contributions) on an "AS IS" BASIS,
148
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
149
+ implied, including, without limitation, any warranties or conditions
150
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
151
+ PARTICULAR PURPOSE. You are solely responsible for determining the
152
+ appropriateness of using or redistributing the Work and assume any
153
+ risks associated with Your exercise of permissions under this License.
154
+
155
+ 8. Limitation of Liability. In no event and under no legal theory,
156
+ whether in tort (including negligence), contract, or otherwise,
157
+ unless required by applicable law (such as deliberate and grossly
158
+ negligent acts) or agreed to in writing, shall any Contributor be
159
+ liable to You for damages, including any direct, indirect, special,
160
+ incidental, or consequential damages of any character arising as a
161
+ result of this License or out of the use or inability to use the
162
+ Work (including but not limited to damages for loss of goodwill,
163
+ work stoppage, computer failure or malfunction, or any and all
164
+ other commercial damages or losses), even if such Contributor
165
+ has been advised of the possibility of such damages.
166
+
167
+ 9. Accepting Warranty or Additional Liability. While redistributing
168
+ the Work or Derivative Works thereof, You may choose to offer,
169
+ and charge a fee for, acceptance of support, warranty, indemnity,
170
+ or other liability obligations and/or rights consistent with this
171
+ License. However, in accepting such obligations, You may act only
172
+ on Your own behalf and on Your sole responsibility, not on behalf
173
+ of any other Contributor, and only if You agree to indemnify,
174
+ defend, and hold each Contributor harmless for any liability
175
+ incurred by, or claims asserted against, such Contributor by reason
176
+ of your accepting any such warranty or additional liability.
177
+
178
+ END OF TERMS AND CONDITIONS
179
+
180
+ APPENDIX: How to apply the Apache License to your work.
181
+
182
+ To apply the Apache License to your work, attach the following
183
+ boilerplate notice, with the fields enclosed by brackets "{}"
184
+ replaced with your own identifying information. (Don't include
185
+ the brackets!) The text should be enclosed in the appropriate
186
+ comment syntax for the file format. We also recommend that a
187
+ file or class name and description of purpose be included on the
188
+ same "printed page" as the copyright notice for easier
189
+ identification within third-party archives.
190
+
191
+ Copyright {yyyy} {name of copyright owner}
192
+
193
+ Licensed under the Apache License, Version 2.0 (the "License");
194
+ you may not use this file except in compliance with the License.
195
+ You may obtain a copy of the License at
196
+
197
+ http://www.apache.org/licenses/LICENSE-2.0
198
+
199
+ Unless required by applicable law or agreed to in writing, software
200
+ distributed under the License is distributed on an "AS IS" BASIS,
201
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
202
+ See the License for the specific language governing permissions and
203
+ limitations under the License.
nqct-0.2.0/PKG-INFO ADDED
@@ -0,0 +1,127 @@
1
+ Metadata-Version: 2.5
2
+ Name: nqct
3
+ Version: 0.2.0
4
+ Summary: Python SDK for the National Quantum Computing Testbed (NQCT)
5
+ Project-URL: Homepage, https://github.com/NQCT-Australia/nqct-sdk
6
+ Project-URL: Documentation, https://nqct-australia.github.io/nqct-sdk/
7
+ Project-URL: Repository, https://github.com/NQCT-Australia/nqct-sdk
8
+ Project-URL: NQCT Cloud spec, https://github.com/NQCT-Australia/nqct-cloud/blob/main/references/specs/14-python-sdk.md
9
+ Author: NQCT Development Team
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: cloud,nqct,qiskit,quantum
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: License :: OSI Approved :: Apache Software License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Topic :: Scientific/Engineering :: Physics
21
+ Classifier: Typing :: Typed
22
+ Requires-Python: >=3.10
23
+ Requires-Dist: httpx<1,>=0.27
24
+ Requires-Dist: pydantic<3,>=2.5
25
+ Requires-Dist: sqdtoolz
26
+ Requires-Dist: typing-extensions>=4.8
27
+ Provides-Extra: dev
28
+ Requires-Dist: mypy>=1.11; extra == 'dev'
29
+ Requires-Dist: pre-commit>=3.8; extra == 'dev'
30
+ Requires-Dist: pytest-cov>=5.0; extra == 'dev'
31
+ Requires-Dist: pytest-httpx>=0.30; extra == 'dev'
32
+ Requires-Dist: pytest>=8.0; extra == 'dev'
33
+ Requires-Dist: respx>=0.21; extra == 'dev'
34
+ Requires-Dist: ruff>=0.6; extra == 'dev'
35
+ Provides-Extra: docs
36
+ Requires-Dist: nbsphinx; extra == 'docs'
37
+ Requires-Dist: sphinx; extra == 'docs'
38
+ Requires-Dist: sphinx-rtd-theme; extra == 'docs'
39
+ Provides-Extra: notebook
40
+ Requires-Dist: ipykernel>=6.29; extra == 'notebook'
41
+ Requires-Dist: jupyterlab>=4.2; extra == 'notebook'
42
+ Provides-Extra: qiskit
43
+ Requires-Dist: qiskit-qasm3-import>=0.4; extra == 'qiskit'
44
+ Requires-Dist: qiskit>=1.0; extra == 'qiskit'
45
+ Description-Content-Type: text/markdown
46
+
47
+ <img src="doc-sphinx/source/_static/nqct.png" width="300">
48
+
49
+ -----------
50
+
51
+ [![Documentation](https://img.shields.io/badge/Documentation-blue)](https://nqct-australia.github.io/nqct-sdk/)
52
+
53
+
54
+ Python interface for the **National Quantum Computing Testbed (NQCT)**.
55
+
56
+ The NQCT Python SDK lets researchers and developers work with NQCT programmatically from Python, Jupyter notebooks, scripts, and automated workflows. Use it to discover available quantum computing resources, submit work, monitor jobs, and retrieve results.
57
+
58
+ The SDK provides programmatic access to the same NQCT environment available through the [NQCT Cloud portal](https://cloud.nqct.org) (see [Developer documentation](docs/README.md)).
59
+
60
+ > **NQCT is an evolving platform.** We welcome feedback, bug reports, feature requests, and complaints. See [Feedback and support](#feedback-and-support) below.
61
+
62
+ ---
63
+
64
+ ## Getting started
65
+
66
+ The easiest way to get started is through the example Jupyter notebooks in this repository.
67
+
68
+ They are designed to take you from your first connection to NQCT through progressively more advanced workflows.
69
+
70
+ **New to the SDK? Start here:**
71
+
72
+ 1. Get an NQCT account and API key.
73
+ 2. Install the Python SDK.
74
+ 3. Open the **Getting Started** notebook.
75
+ 4. Follow the examples and adapt them to your own work.
76
+ 5. Explore the other notebooks as you become familiar with the platform.
77
+
78
+ See [Examples and notebooks](#examples-and-notebooks).
79
+
80
+ ---
81
+
82
+ ## Installation
83
+
84
+ Install the SDK using Python's package manager:
85
+
86
+ ```bash
87
+ pip install nqct
88
+ ```
89
+
90
+ > **Note:** The package will be published to PyPI as the project reaches its public release. Until then, see the repository documentation for the current installation method.
91
+
92
+ You will also need an **NQCT API key** to access the platform.
93
+
94
+ API keys are managed through your NQCT account.
95
+
96
+ ---
97
+
98
+ ## Feedback and support
99
+
100
+ NQCT is an active research and development platform, and **user feedback is an important part of its development**.
101
+
102
+ If you encounter a problem, have a feature request, disagree with how something works, or simply have feedback about your experience, please open an issue on GitHub.
103
+
104
+ **GitHub Issues are also the preferred forum for discussion and feedback.**
105
+
106
+ [Open an issue or join the discussion](https://github.com/NQCT-Australia/nqct-sdk/issues).
107
+
108
+ ---
109
+
110
+ ## Related resources
111
+
112
+ | Resource | Description |
113
+ | ------------------------------------------------------------------- | --------------------- |
114
+ | [NQCT Cloud](https://cloud.nqct.org) | NQCT web portal |
115
+ | [NQCT Python SDK](https://github.com/NQCT-Australia/nqct-sdk) | This repository |
116
+ | [NQCT Cloud platform](https://github.com/NQCT-Australia/nqct-cloud) | NQCT platform and API |
117
+ | [NQCT API documentation](https://api.nqct.org/docs) | API reference |
118
+
119
+ ---
120
+
121
+ ## Project status
122
+
123
+ The NQCT Python SDK is under active development.
124
+
125
+ Current functionality and interfaces may evolve as the NQCT platform develops. See the [CHANGELOG](CHANGELOG.md) for significant changes between releases.
126
+
127
+ For the latest information about supported capabilities, see the example notebooks and current technical documentation.