{ "info": { "author": "Jason K. Elhaderi", "author_email": "jasonelhaderi@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# pypSQUEAK \u2014 Python Packaged Semantic Quantum Expression Architecture\nAn extension of Python providing high-level object abstractions for quantum devices.\n\nFeatures of pypSQUEAK include:\n* Variable-size quantum registers. The sky's the limit. (Well, your hard drive's size is anyway.)\n* Built-in set of universal one-qubit gates as well as several important two-qubit gates.\n* User-defined static or parametric gates of arbitrary size.\n* Modeling of noisy quantum channels.\n\nFor more information, consult the [documentation](https://pypsqueak.readthedocs.io/en/latest/index.html).\n\n## Installation\nInstallation is done via `pip`:\n```pip install pypsqueak```\n\n## Examples\nSeveral examples are provided in the [examples](https://github.com/jasonelhaderi/pypsqueak/tree/master/examples) folder. They are Python scripts demonstrating various aspects of pypSQUEAK.\n\nHere is an example of a script that constructs a pypSQUEAK program to measure a qubit in the |1> state in the presence of noise:\n```python\nimport pypsqueak.api as sq\nfrom pypsqueak.gates import X\nfrom pypsqueak.noise import damping_map\n\nnoisy_channel = sq.qOp(kraus_ops=damping_map(0.3))\n\nzeros = 0\nones = 0\nn_runs = 100\nfor i in range(n_runs):\n q = sq.qReg()\n # Prep the |1> state\n X.on(q)\n # Send it through an amp decay channel with 0.3 chance of decay\n noisy_channel.on(q)\n # measure the resulting qubit\n result = q.measure(0)\n if result == 0:\n zeros += 1\n else:\n ones += 1\n\nprint(zeros/n_runs, ones/n_runs)\n```\n\n## License\nThis projects is licensed under the MIT License. See LICENSE.txt for more details.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jasonelhaderi/pypsqueak", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pypSQUEAK", "package_url": "https://pypi.org/project/pypSQUEAK/", "platform": "", "project_url": "https://pypi.org/project/pypSQUEAK/", "project_urls": { "Homepage": "https://github.com/jasonelhaderi/pypsqueak" }, "release_url": "https://pypi.org/project/pypSQUEAK/2.0.0/", "requires_dist": [ "numpy (>=1.14.5)" ], "requires_python": "~=3.6", "summary": "A Python package for simulated quantum computing.", "version": "2.0.0" }, "last_serial": 4339118, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "1adceba5ae37a065ec1155d43bc1e64c", "sha256": "8f6a9ff97f35581a5859f5f3deb7a2a796ef7e6f953ac68aa5e37c584a010e5c" }, "downloads": -1, "filename": "pypSQUEAK-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1adceba5ae37a065ec1155d43bc1e64c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 15611, "upload_time": "2018-09-01T03:39:12", "url": "https://files.pythonhosted.org/packages/02/89/bf4bce08289a41ca43160af44bad145e82bc3f708ebead3e401b533a0fec/pypSQUEAK-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9f6cafc9ed0e538d427292f7b294d26", "sha256": "ce5f5b136fcb14656d9d4da831f77e4aadae0804418f6d22a96ac53fea58085d" }, "downloads": -1, "filename": "pypSQUEAK-1.0.1.tar.gz", "has_sig": false, "md5_digest": "b9f6cafc9ed0e538d427292f7b294d26", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 14320, "upload_time": "2018-09-01T03:39:14", "url": "https://files.pythonhosted.org/packages/c9/a3/072a7c21c74dd3c6855f29645f49af32a955a3a38a2e18df0133b56170f9/pypSQUEAK-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "424f6a57d7610986601b94f65b817396", "sha256": "bdc4be992689bbf5f2c96e3e2476d9d25eabac1b11371cba28c0f7b03057e3e4" }, "downloads": -1, "filename": "pypSQUEAK-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "424f6a57d7610986601b94f65b817396", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 21219, "upload_time": "2018-09-12T06:59:44", "url": "https://files.pythonhosted.org/packages/7d/7a/8eb37bc57db6cecd5363e35269f309d647cc4315974370039d40de8b23df/pypSQUEAK-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e4abe0d20e1ef32ec9ee412812840241", "sha256": "a4db94d90551e1fb1ffd4d58575327bb18fd9de854148ccd9806b106915d954d" }, "downloads": -1, "filename": "pypSQUEAK-1.0.2.tar.gz", "has_sig": false, "md5_digest": "e4abe0d20e1ef32ec9ee412812840241", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 20276, "upload_time": "2018-09-12T06:59:46", "url": "https://files.pythonhosted.org/packages/36/46/17da4c6a781f5b54b6ef815c4ee88690282fdcb4541520c118e76ab582a0/pypSQUEAK-1.0.2.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "6c43cdd5a4c55cf197229e0269973c90", "sha256": "1806d5dd53dff78361a65a2126a89d72b0db7621fdc8bddc0adac2103bc02761" }, "downloads": -1, "filename": "pypSQUEAK-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6c43cdd5a4c55cf197229e0269973c90", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 18322, "upload_time": "2018-10-04T06:27:23", "url": "https://files.pythonhosted.org/packages/1a/79/bf0ea380cc12326e76663bfac732256cb56e8b2ceb1c7dc2de13db980ef9/pypSQUEAK-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2f993ac15fd3d343281ed81f8e2c2232", "sha256": "537fbe4bef4b34d50f7e04292a3dc76311f40506e67332ff488a5c7f32a7206b" }, "downloads": -1, "filename": "pypSQUEAK-2.0.0.tar.gz", "has_sig": false, "md5_digest": "2f993ac15fd3d343281ed81f8e2c2232", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 17274, "upload_time": "2018-10-04T06:27:25", "url": "https://files.pythonhosted.org/packages/ec/be/7e56a2e63eb3828a668e317adea8844ab59c9bf8d070e00d207e6a5508f3/pypSQUEAK-2.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6c43cdd5a4c55cf197229e0269973c90", "sha256": "1806d5dd53dff78361a65a2126a89d72b0db7621fdc8bddc0adac2103bc02761" }, "downloads": -1, "filename": "pypSQUEAK-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "6c43cdd5a4c55cf197229e0269973c90", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": "~=3.6", "size": 18322, "upload_time": "2018-10-04T06:27:23", "url": "https://files.pythonhosted.org/packages/1a/79/bf0ea380cc12326e76663bfac732256cb56e8b2ceb1c7dc2de13db980ef9/pypSQUEAK-2.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2f993ac15fd3d343281ed81f8e2c2232", "sha256": "537fbe4bef4b34d50f7e04292a3dc76311f40506e67332ff488a5c7f32a7206b" }, "downloads": -1, "filename": "pypSQUEAK-2.0.0.tar.gz", "has_sig": false, "md5_digest": "2f993ac15fd3d343281ed81f8e2c2232", "packagetype": "sdist", "python_version": "source", "requires_python": "~=3.6", "size": 17274, "upload_time": "2018-10-04T06:27:25", "url": "https://files.pythonhosted.org/packages/ec/be/7e56a2e63eb3828a668e317adea8844ab59c9bf8d070e00d207e6a5508f3/pypSQUEAK-2.0.0.tar.gz" } ] }