Name | kipu-client JSON |
Version |
0.0.3
JSON |
| download |
home_page | |
Summary | Python client for Kipu platform |
upload_time | 2024-02-20 11:12:37 |
maintainer | |
docs_url | None |
author | |
requires_python | <3.12,>=3.9 |
license | MIT |
keywords |
kipu
python
dcqo
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Kipu Python Client
The aim of this repository is to host the Python client that will enable customers to interact without platform and the solvers it contains:
* DCQO
* DCQC (direct and variational)
Those will be indirectly used as the focus of the library will be to ease the usage by requesting the minimum amount of information required and automate all decisions made in order to achieve user goals (precision, execution time or cost among others).
## Authentication
In order to access the platform users will need to log in to it.
```
import os
from kipu import Client
client = Client(api_key=os.environ["API_KEY"])
```
This way the communication with the backend will be granted by the use of the API key.
## Ising model
the most basic function on the client is the composition of a circuit solving an Ising type of model
$$
H = \sum_i^N h_i\sigma_i^z + \sum_i^N \sum_{j>i}^N J_{ij}\sigma_i^z\sigma_j^z.
$$
By providing the $h$ and $J$ coefficients one can ask the library to compose the corresponding circuit to be executed on a gate-based quantum device.
```
h = [0.0, ...]
J = {
"0-1" : 0.01,...
}
qasm_text = client.compose_circuit(h, J)
```
That way one would retrieve the QASM code of the circuit.
## Optimization
Basically, each enabled case translates the problem to be solved to an Ising Hamiltonian whose ground state is solved by the corresponding endpoint. For FEATURE SELECTION for example, given a dataset we will select which one is the target column and the number of assets we would like to select (maximum number).
```
target_columns = "target"
max_features = 6
client.feature_selection(df, target_columns, max_features)
```
Raw data
{
"_id": null,
"home_page": "",
"name": "kipu-client",
"maintainer": "",
"docs_url": null,
"requires_python": "<3.12,>=3.9",
"maintainer_email": "",
"keywords": "kipu python dcqo",
"author": "",
"author_email": "Kipu Quantum GmbH <info@kipu-quantum.com>",
"download_url": "https://files.pythonhosted.org/packages/93/ef/af5ccbd76d9ebcc05fef6e1acd309686e42907138a32e373e5b66dd58062/kipu_client-0.0.3.tar.gz",
"platform": null,
"description": "# Kipu Python Client\n\nThe aim of this repository is to host the Python client that will enable customers to interact without platform and the solvers it contains:\n\n* DCQO\n* DCQC (direct and variational)\n\nThose will be indirectly used as the focus of the library will be to ease the usage by requesting the minimum amount of information required and automate all decisions made in order to achieve user goals (precision, execution time or cost among others).\n\n## Authentication\n\nIn order to access the platform users will need to log in to it.\n\n```\nimport os\nfrom kipu import Client\n\nclient = Client(api_key=os.environ[\"API_KEY\"])\n```\n\nThis way the communication with the backend will be granted by the use of the API key.\n\n## Ising model\n\nthe most basic function on the client is the composition of a circuit solving an Ising type of model\n\n$$\n\nH = \\sum_i^N h_i\\sigma_i^z + \\sum_i^N \\sum_{j>i}^N J_{ij}\\sigma_i^z\\sigma_j^z.\n\n$$\n\nBy providing the $h$ and $J$ coefficients one can ask the library to compose the corresponding circuit to be executed on a gate-based quantum device.\n\n```\nh = [0.0, ...]\nJ = {\n \"0-1\" : 0.01,...\n}\n\nqasm_text = client.compose_circuit(h, J)\n```\n\nThat way one would retrieve the QASM code of the circuit.\n\n## Optimization\n\nBasically, each enabled case translates the problem to be solved to an Ising Hamiltonian whose ground state is solved by the corresponding endpoint. For FEATURE SELECTION for example, given a dataset we will select which one is the target column and the number of assets we would like to select (maximum number).\n\n```\ntarget_columns = \"target\"\nmax_features = 6\n\nclient.feature_selection(df, target_columns, max_features)\n```",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python client for Kipu platform",
"version": "0.0.3",
"project_urls": {
"Documentation": "http://docs.kipustack.com/",
"Homepage": "https://kipu-quantum.com",
"Registry": "https://app.kipustack.com/"
},
"split_keywords": [
"kipu",
"python",
"dcqo"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e5f2fd3d1313e5e18e74b7a282e303261bf5fa1d43998a05160c16a4138bf07e",
"md5": "96f9dbc1a9c7c74f189b54a62f8d3fb2",
"sha256": "3d289b23123335de371141ade8e89d08b04484ebfc3d4b43882a9a3a8f2c3a42"
},
"downloads": -1,
"filename": "kipu_client-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "96f9dbc1a9c7c74f189b54a62f8d3fb2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.12,>=3.9",
"size": 6979,
"upload_time": "2024-02-20T11:12:35",
"upload_time_iso_8601": "2024-02-20T11:12:35.565647Z",
"url": "https://files.pythonhosted.org/packages/e5/f2/fd3d1313e5e18e74b7a282e303261bf5fa1d43998a05160c16a4138bf07e/kipu_client-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "93efaf5ccbd76d9ebcc05fef6e1acd309686e42907138a32e373e5b66dd58062",
"md5": "9e47e40c9c0d19d415c077afa17349e9",
"sha256": "d1cb79995e8c17a1a93f29fb41345134d48c91a1f1c231abbfce87088be91cd3"
},
"downloads": -1,
"filename": "kipu_client-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "9e47e40c9c0d19d415c077afa17349e9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.12,>=3.9",
"size": 5549,
"upload_time": "2024-02-20T11:12:37",
"upload_time_iso_8601": "2024-02-20T11:12:37.182688Z",
"url": "https://files.pythonhosted.org/packages/93/ef/af5ccbd76d9ebcc05fef6e1acd309686e42907138a32e373e5b66dd58062/kipu_client-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-02-20 11:12:37",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "kipu-client"
}