{ "info": { "author": "Bruno Gouv\u00eaa Taketani, Evandro Chagas Ribeiro da Rosa", "author_email": "ev.crr97@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Science/Research", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3" ], "description": "# QSystem\n[![PyPI](https://img.shields.io/pypi/v/qsystem.svg)](https://pypi.org/project/QSystem/)\n[![PyPI - License](https://img.shields.io/pypi/l/qsystem.svg?color=brightgree)](https://gitlab.com/evandro-crr/qsystem/blob/master/LICENSE)\n[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/qsystem.svg?color=red)](https://www.python.org/)\n[![Wiki](https://img.shields.io/badge/wiki-available-sucess.svg)](https://gitlab.com/evandro-crr/qsystem/wikis/home)\n[![Doc](https://img.shields.io/badge/doc-available-succes.svg)](https://evandro-crr.gitlab.io/qsystem/index.html)\n\nA quantum computing simulator for Python.\n\n------------------------\nThe QSystem simulator is inspired in the quantum circuit model, so it's easy to\nconvert any quantum circuit to Python.\n\nLike the follow example:\n\n![circ](https://gitlab.com/evandro-crr/qsystem/raw/1.1.0/circ.svg)\n\n```python\nfrom qsystem import QSystem\nfrom cmath import exp, pi\nq = QSystem(3, 24) # init q0, q1, q2\n\nq.evol(gate='H', qbit=0, count=3) # H q0; H q1; H q2\nq.add_ancillas(4) # init a0, a1, a2, a3\n \nq.evol(gate='X', qbit=6) # X a3\nq.cnot(target=4, control=[2]) # CNOT a1, q2\nq.cnot(5, [2]) # CNOT a2, q2\nq.cnot(5, [3]) # CNOT a2, a0\nq.cnot(3, [1, 5]) # Toffoli a1, q1, a2\nq.cnot(5, [3]) # CNOT a2, a0\nq.cnot(4, [6]) # CNOT a1, a3\nq.cnot(6, [1, 4]) # Toffoli a3, q1, a1\nq.cnot(4, [6]) # CNOT a1, a3\n\nq.measure(qbit=3, count=4) # measure a0, a1, a2, a3\nprint('ancillas measurement =', q.bits()[3:])\n# ancillas measurement = [0, 1, 0, 0]\nq.rm_ancillas() # rm a0, a1, a2, a3\n\nq.evol('H', 0) # H q0 \u2510\nq.cphase(phase=1j, target=1, control=[0]) # Controlled S q1, q0 \u2502\nq.evol('H', 1) # H q1 \u2502\nq.cphase(exp(pi*1j/4), 2, [0]) # Controlled T q2, q0 \u2502 = q.qft(0, 3)\nq.cphase(1j, 2, [1]) # Controlled S q2, q1 \u2502\nq.evol('H', 2) # H q1 \u2502\nq.swap(0, 2) # SWAP q0, q2 \u2518\n\nq.measure(0, 3) # measure q0, q1, q2\nprint('final measurement =', q.bits())\n# final measurement = [1, 0, 0]\n```\n\nSeed the [wiki](https://gitlab.com/evandro-crr/qsystem/wikis/home) and the\n[documentation](https://evandro-crr.gitlab.io/qsystem/index.html).\n\n---------------------------\nThis software is suported by \n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/evandro-crr/qsystem", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "QSystem", "package_url": "https://pypi.org/project/QSystem/", "platform": "", "project_url": "https://pypi.org/project/QSystem/", "project_urls": { "Homepage": "https://gitlab.com/evandro-crr/qsystem" }, "release_url": "https://pypi.org/project/QSystem/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "A quantum computing simulator for Python", "version": "1.1.0" }, "last_serial": 5843899, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "328b250d27a6ee0a78096b9085d1ffa5", "sha256": "b43c9f9033461b999d5f37240bbee196e7f122a48f752d49a2e6a8fe6a1f2cf7" }, "downloads": -1, "filename": "QSystem-1.0.0.tar.gz", "has_sig": false, "md5_digest": "328b250d27a6ee0a78096b9085d1ffa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 596037, "upload_time": "2019-05-04T20:58:52", "url": "https://files.pythonhosted.org/packages/de/8a/e0188aa06051ef26be098d1e9f1b5c5903cba7c34f702d792ba6245f4791/QSystem-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "160033a6118f657e1a64ab1c9107008e", "sha256": "3f8c9a40860722fd3ce9c239e90c5a0f8337e5958b719859dbadfb4dc77c456e" }, "downloads": -1, "filename": "QSystem-1.1.0.tar.gz", "has_sig": false, "md5_digest": "160033a6118f657e1a64ab1c9107008e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 604974, "upload_time": "2019-05-29T00:02:47", "url": "https://files.pythonhosted.org/packages/f1/18/c67d4e71cda8bcc236cdd6285d19637b0417cfdf7271ffda9e855e3ac238/QSystem-1.1.0.tar.gz" } ], "1.2.0b0": [ { "comment_text": "", "digests": { "md5": "e856f194c9fab8dc58f73c093791ee5b", "sha256": "8da5d5e4fff056ebe7bba30bc229099bcc69ea1eb2bbf795c88cd4a30dd45414" }, "downloads": -1, "filename": "QSystem-1.2.0b0.tar.gz", "has_sig": false, "md5_digest": "e856f194c9fab8dc58f73c093791ee5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 623075, "upload_time": "2019-09-03T02:07:05", "url": "https://files.pythonhosted.org/packages/f4/15/14248006bea810d7ca9ac45696a8eac05301621e76b5a091d1f210fac59c/QSystem-1.2.0b0.tar.gz" } ], "1.2.0b1": [ { "comment_text": "", "digests": { "md5": "88bf8830c8cf7aea871c355ec2826b33", "sha256": "bb37a2aa5efd96ad6a8ae8498334bd8ea2148a68002e19b300365d7bd9975499" }, "downloads": -1, "filename": "QSystem-1.2.0b1.tar.gz", "has_sig": false, "md5_digest": "88bf8830c8cf7aea871c355ec2826b33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 622352, "upload_time": "2019-09-17T20:26:44", "url": "https://files.pythonhosted.org/packages/3d/00/d927c94c7d4947e016b13ccfe1b6f444b2458f8204a7a11b18adbb46abb4/QSystem-1.2.0b1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "160033a6118f657e1a64ab1c9107008e", "sha256": "3f8c9a40860722fd3ce9c239e90c5a0f8337e5958b719859dbadfb4dc77c456e" }, "downloads": -1, "filename": "QSystem-1.1.0.tar.gz", "has_sig": false, "md5_digest": "160033a6118f657e1a64ab1c9107008e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 604974, "upload_time": "2019-05-29T00:02:47", "url": "https://files.pythonhosted.org/packages/f1/18/c67d4e71cda8bcc236cdd6285d19637b0417cfdf7271ffda9e855e3ac238/QSystem-1.1.0.tar.gz" } ] }