{"id":20817708,"url":"https://github.com/splch/ionq-ml-demo","last_synced_at":"2025-04-10T01:03:43.169Z","repository":{"id":195830641,"uuid":"692355914","full_name":"splch/ionq-ml-demo","owner":"splch","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-19T05:03:43.000Z","size":12768,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T03:51:31.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/splch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-16T08:21:15.000Z","updated_at":"2024-02-03T04:59:32.000Z","dependencies_parsed_at":"2023-09-19T20:13:56.211Z","dependency_job_id":null,"html_url":"https://github.com/splch/ionq-ml-demo","commit_stats":null,"previous_names":["splch/ionq-ml-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fionq-ml-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fionq-ml-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fionq-ml-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fionq-ml-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splch","download_url":"https://codeload.github.com/splch/ionq-ml-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248137893,"owners_count":21053775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T21:43:58.120Z","updated_at":"2025-04-10T01:03:43.153Z","avatar_url":"https://github.com/splch.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IonQ Machine Learning Demo\n\n## Description\n\nThis repository contains code for a hybrid quantum-classical machine learning classifier. The model is trained on the red wine quality dataset and utilizes both classical neural networks and quantum neural networks (QNNs) from Qiskit.\n\n**Ansatz**:\n\n![Ansatz](./misc/ansatz.png)\n\n**Decision Boundary:**\n\n![Decision Boundary](./misc/boundary.png)\n\n## Installation\n\nNavigate to the project directory:\n\n```bash\ncd ionq-ml-demo\n```\n\nCreate a virtual environment (optional):\n\n```bash\npython3 -m venv .venv\n```\n\nActivate the virtual environment:\n\n```bash\nsource .venv/bin/activate  # On Unix or MacOS\n.venv\\Scripts\\Activate     # On Windows\n```\n\nInstall the required packages:\n\n```bash\npip install -r requirements.txt\n```\n\n## Usage\n\n1. Open the `main.ipynb` Jupyter Notebook:\n\n   ```bash\n   jupyter notebook main.ipynb\n   ```\n\n2. Run the cells in the notebook to train the model. The trained model will be saved as `model.pt`.\n\n3. To use the model in your applications, you can load it using PyTorch's `torch.load()` method.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplch%2Fionq-ml-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplch%2Fionq-ml-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplch%2Fionq-ml-demo/lists"}