{"id":32630248,"url":"https://github.com/dwavesystems/dwave-gate","last_synced_at":"2025-10-30T22:49:42.695Z","repository":{"id":63913855,"uuid":"499286703","full_name":"dwavesystems/dwave-gate","owner":"dwavesystems","description":"dwave-gate is a software package for constructing, modifying and running quantum circuits on the provided state-vector simulator.","archived":false,"fork":false,"pushed_at":"2025-06-06T22:17:00.000Z","size":439,"stargazers_count":16,"open_issues_count":11,"forks_count":9,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-09-30T15:10:46.110Z","etag":null,"topics":["quantum","quantum-computing","quantum-programming-language"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dwavesystems.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-02T20:50:06.000Z","updated_at":"2025-07-28T00:10:38.000Z","dependencies_parsed_at":"2024-02-02T18:24:00.771Z","dependency_job_id":"7895aab2-61de-4fff-9d5a-4e72c4cd40ef","html_url":"https://github.com/dwavesystems/dwave-gate","commit_stats":{"total_commits":113,"total_committers":4,"mean_commits":28.25,"dds":0.2654867256637168,"last_synced_commit":"931d1b3c616dd708d0bab517f44f0ef827798ff8"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/dwavesystems/dwave-gate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fdwave-gate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fdwave-gate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fdwave-gate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fdwave-gate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dwavesystems","download_url":"https://codeload.github.com/dwavesystems/dwave-gate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dwavesystems%2Fdwave-gate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281896623,"owners_count":26580138,"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-10-30T02:00:06.501Z","response_time":61,"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":["quantum","quantum-computing","quantum-programming-language"],"created_at":"2025-10-30T22:48:59.161Z","updated_at":"2025-10-30T22:49:42.686Z","avatar_url":"https://github.com/dwavesystems.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://img.shields.io/pypi/v/dwave-gate.svg\n    :target: https://pypi.org/project/dwave-gate\n\n.. image:: https://img.shields.io/pypi/pyversions/dwave-gate.svg\n    :target: https://pypi.org/project/dwave-gate\n\n.. image:: https://circleci.com/gh/dwavesystems/dwave-gate.svg?style=svg\n    :target: https://circleci.com/gh/dwavesystems/dwave-gate\n\n.. image:: https://codecov.io/gh/dwavesystems/dwave-gate/branch/main/graph/badge.svg\n    :target: https://codecov.io/gh/dwavesystems/dwave-gate\n\n==========\ndwave-gate\n==========\n\n.. start_gate_about\n\n``dwave-gate`` is a software package for constructing, modifying and running\nquantum circuits on the included simulator. It provides a set of tools that\nenables you to:\n\n*   Construct quantum circuits using an intuitive context-manager interface.\n\n*   Utilize a comprehensive library of quantum gates with simple access to\n    matrix representations, various decompositions, and more.\n\n*   Simulate circuits on a performant (C++) state-vector simulator.\n\n*   Easily create your own quantum gates and templates. Any circuit can be\n    either directly applied in another circuit or converted into a quantum\n    operation.\n\nThis example uses the ``dwave.gate.Circuit`` object's  context manager to append\noperations to a two-qubit circuit.\n\n\u003e\u003e\u003e import dwave.gate.operations as ops\n\u003e\u003e\u003e from dwave.gate import Circuit\n\n\u003e\u003e\u003e circuit = Circuit(2)\n\n\u003e\u003e\u003e with circuit.context as (q, c):     # doctest: +SKIP\n...    ops.X(q[0])\n...    ops.Hadamard(q[1])\n...    ops.CZ(q[0], q[1])\n...    ops.Hadamard(q[1])\n\nYou can run the ``dwave.gate.simulator`` simulator on such circuits,\n\n\u003e\u003e\u003e from dwave.gate.simulator import simulate\n\u003e\u003e\u003e simulate(circuit)\n\nand then access the resulting state via the state attribute.\n\n\u003e\u003e\u003e circuit.state   # doctest: +SKIP\narray([0.+0.j, 0.+0.j, 0.+0.j, 1.+0.j])\n\n.. end_gate_about\n\nInstallation\n============\n\nThe simplest way to install ``dwave-gate`` is from\n`PyPI \u003chttps://pypi.org/project/dwave-gate\u003e`_:\n\n.. code-block:: bash\n\n    pip install dwave-gate\n\nIt can also be installed from source by cloning this GitHub repository and\nrunning:\n\n.. code-block:: bash\n\n    make install\n\nThe makefile will also simplify running tests (``make test``), coverage\n(``make coverage``), documentation (``make docs``), as well as formatting\n(``make format``) the code using the `Black \u003chttps://black.readthedocs.io/\u003e`_\nformatter (set to a line-length of 100) and\n`isort \u003chttps://pycqa.github.io/isort/\u003e`_. It's available on both Unix as well\nas Windows systems, via the `make.bat` batch file.\n\nAlternatively, the package can be built and installed in development mode using\nPython and pip. The simulator operations would need to be generated first by\nexecuting `operation_generation.py`, found in `dwave/gate/simulator`.\n\n.. code-block:: bash\n\n    python setup.py build_ext --inplace\n    pip install -e .\n\nTests and coverage can be run using Pytest.\n\n.. code-block:: bash\n\n    python -m pytest tests/ --cov=dwave.gate\n\n.. note::\n\n    For the QIR compiler and loader to work the PyQIR (v0.9.0) is required. It\n    can be installed manually with ``pip install pyqir==0.9.0`` or as an\n    optional dependency:\n\n    .. code-block:: bash\n\n        pip install dwave-gate[qir]\n\n\nLicense\n=======\n\nReleased under the Apache License 2.0. See LICENSE file.\n\n\nContributing\n============\n\nOcean's `contributing guide \u003chttps://docs.dwavequantum.com/en/latest/ocean/contribute.html\u003e`_\nhas guidelines for contributing to Ocean packages.\n\nRelease Notes\n-------------\n\n``dwave-gate`` uses `reno \u003chttps://docs.openstack.org/reno/\u003e`_ to manage its\nrelease notes.\n\nWhen making a contribution to ``dwave-gate`` that will affect users, create a\nnew release note file by running\n\n.. code-block:: bash\n\n    reno new your-short-descriptor-here\n\nYou can then edit the file created under ``releasenotes/notes/``. Remove any\nsections not relevant to your changes. Commit the file along with your changes.\n\nSee reno's\n`user guide \u003chttps://docs.openstack.org/reno/latest/user/usage.html\u003e`_ for\ndetails.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwavesystems%2Fdwave-gate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdwavesystems%2Fdwave-gate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdwavesystems%2Fdwave-gate/lists"}