{"id":20817706,"url":"https://github.com/splch/gate-transpilation-fix","last_synced_at":"2025-09-11T13:06:11.315Z","repository":{"id":212157372,"uuid":"721348521","full_name":"splch/gate-transpilation-fix","owner":"splch","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-18T23:51:11.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T13:50:05.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"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,"roadmap":null,"authors":null}},"created_at":"2023-11-20T21:53:40.000Z","updated_at":"2023-12-12T18:55:53.000Z","dependencies_parsed_at":"2023-12-19T02:50:27.899Z","dependency_job_id":"6579a72e-2468-47dd-914f-f2611e5b5416","html_url":"https://github.com/splch/gate-transpilation-fix","commit_stats":null,"previous_names":["splch/gate-transpilation-fix"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/splch/gate-transpilation-fix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fgate-transpilation-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fgate-transpilation-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fgate-transpilation-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fgate-transpilation-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/splch","download_url":"https://codeload.github.com/splch/gate-transpilation-fix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/splch%2Fgate-transpilation-fix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274640910,"owners_count":25322843,"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","status":"online","status_checked_at":"2025-09-11T02:00:13.660Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:54.814Z","updated_at":"2025-09-11T13:06:11.266Z","avatar_url":"https://github.com/splch.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qiskit-IonQ Transpilation Bug Fix Repository\n\n## Overview\nThis repository demonstrates a transpilation bug encountered when using Qiskit with IonQ quantum computing machines. The bug affects the transpilation of quantum circuits into IonQ's native gateset.\n\n## Setup\nBefore using the code in this repository, ensure that you have the necessary packages installed. Run the following command:\n\n```bash\npip install -U qiskit \\\n    qiskit_ionq \\\n    matplotlib \\\n    pylatexenc\n```\n\nThen to test the bug fix, use the `qiskit-ionq` submodule:\n\n```bash\ngit submodule init\ngit submodule update\ngit pull --recurse-submodules\n```\n\n## Usage\nTo recreate this bug, open `demo.ipynb` or follow these steps:\n\n1. **Import Required Libraries**: Ensure you import the necessary libraries, including `qiskit_ionq` and `os`.\n\n2. **API Key**: Obtain your IonQ API key from [IonQ Cloud](https://cloud.ionq.com/settings/keys). The code checks for the API key in your environment variables and prompts for it if not found.\n\n3. **Backend Specification**: Set up the backend using `qiskit_ionq.IonQProvider` and specify the `ionq_qpu.aria-1` backend with the `native` gateset.\n\n4. **Quantum Circuit**: Create your quantum circuit using Qiskit. An example circuit with two qubits is included.\n\n5. **Transpilation**: Attempt to transpile the circuit to IonQ's native gateset. If the bug is encountered, an error will be raised.\n\n6. **Running the Circuit**: Once the transpilation issue is resolved, you can send the job to the backend and plot the results.\n\n## Bug Description and Fix\nThe bug is triggered during the transpilation of certain quantum gates (like 'barrier', 'h', 'cx', 'measure') to IonQ's target basis gates. The fix should involve updating the IonQ gate definitions or adjusting the transpilation process to accommodate IonQ's native gateset correctly.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplch%2Fgate-transpilation-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsplch%2Fgate-transpilation-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsplch%2Fgate-transpilation-fix/lists"}