qsharp


Nameqsharp JSON
Version 1.4.0 PyPI version JSON
download
home_pagehttps://github.com/microsoft/qsharp
SummaryQ# Python Bindings
upload_time2024-04-23 18:43:37
maintainerNone
docs_urlNone
authorMicrosoft
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Q# Language Support for Python

Q# is an open-source, high-level programming language for developing and running quantum algorithms.
The `qsharp` package for Python provides interoperability with the Q# interpreter, making it easy
to simulate Q# programs within Python.

## Installation

To install the Q# language package, run:

```bash
pip install qsharp
```

## Usage

First, import the `qsharp` module:

```python
import qsharp
```

Then, use the `%%qsharp` cell magic to run Q# directly in Jupyter notebook cells:

```qsharp
%%qsharp

open Microsoft.Quantum.Diagnostics;

@EntryPoint()
operation BellState() : Unit {
    use qs = Qubit[2];
    H(qs[0]);
    CNOT(qs[0], qs[1]);
    DumpMachine();
    ResetAll(qs);
}

BellState()
```

## Support

For more information about the Azure Quantum Development Kit, visit [https://aka.ms/AQ/Documentation](https://aka.ms/AQ/Documentation).

## Contributing

Q# welcomes your contributions! Visit the Q# GitHub repository at [https://github.com/microsoft/qsharp] to find out more about the project.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/microsoft/qsharp",
    "name": "qsharp",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Microsoft",
    "author_email": null,
    "download_url": null,
    "platform": null,
    "description": "# Q# Language Support for Python\n\nQ# is an open-source, high-level programming language for developing and running quantum algorithms.\nThe `qsharp` package for Python provides interoperability with the Q# interpreter, making it easy\nto simulate Q# programs within Python.\n\n## Installation\n\nTo install the Q# language package, run:\n\n```bash\npip install qsharp\n```\n\n## Usage\n\nFirst, import the `qsharp` module:\n\n```python\nimport qsharp\n```\n\nThen, use the `%%qsharp` cell magic to run Q# directly in Jupyter notebook cells:\n\n```qsharp\n%%qsharp\n\nopen Microsoft.Quantum.Diagnostics;\n\n@EntryPoint()\noperation BellState() : Unit {\n    use qs = Qubit[2];\n    H(qs[0]);\n    CNOT(qs[0], qs[1]);\n    DumpMachine();\n    ResetAll(qs);\n}\n\nBellState()\n```\n\n## Support\n\nFor more information about the Azure Quantum Development Kit, visit [https://aka.ms/AQ/Documentation](https://aka.ms/AQ/Documentation).\n\n## Contributing\n\nQ# welcomes your contributions! Visit the Q# GitHub repository at [https://github.com/microsoft/qsharp] to find out more about the project.\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Q# Python Bindings",
    "version": "1.4.0",
    "project_urls": {
        "Homepage": "https://github.com/microsoft/qsharp",
        "Source Code": "https://github.com/microsoft/qsharp"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "88012f3cf2b313771ab1942d322dfc553fefaec14445599882aa13d6693b6b05",
                "md5": "64511bceab5dee05df2a1a5d1a93ca0b",
                "sha256": "53adc1dfc83275245a61a1278f31c9992588295e46a96dcbd1d27d827bdcb0f8"
            },
            "downloads": -1,
            "filename": "qsharp-1.4.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl",
            "has_sig": false,
            "md5_digest": "64511bceab5dee05df2a1a5d1a93ca0b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 3200090,
            "upload_time": "2024-04-23T18:43:37",
            "upload_time_iso_8601": "2024-04-23T18:43:37.208283Z",
            "url": "https://files.pythonhosted.org/packages/88/01/2f3cf2b313771ab1942d322dfc553fefaec14445599882aa13d6693b6b05/qsharp-1.4.0-cp37-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "081c374bb51085740eb7fb2766dcc9d1ef9fa1a5d0ac268399571bc72315c105",
                "md5": "9b9cebf0185b58b36e3eea6e406fdfa0",
                "sha256": "4d402c707a82b00f4fc222aab5ba3128849cc668d589611b2bb0addbfa098377"
            },
            "downloads": -1,
            "filename": "qsharp-1.4.0-cp37-abi3-manylinux_2_31_aarch64.whl",
            "has_sig": false,
            "md5_digest": "9b9cebf0185b58b36e3eea6e406fdfa0",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1617225,
            "upload_time": "2024-04-23T18:43:41",
            "upload_time_iso_8601": "2024-04-23T18:43:41.354781Z",
            "url": "https://files.pythonhosted.org/packages/08/1c/374bb51085740eb7fb2766dcc9d1ef9fa1a5d0ac268399571bc72315c105/qsharp-1.4.0-cp37-abi3-manylinux_2_31_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "76dc205631b463ccac1270c95224732382911889593e94814ad4a1ef823bf8ef",
                "md5": "19e8caeab572487793a333cd1150f6da",
                "sha256": "e4cdb3a04db43aa923950cbee343075cbb7a9a52fe38eecc5c9df293d58be5df"
            },
            "downloads": -1,
            "filename": "qsharp-1.4.0-cp37-abi3-manylinux_2_31_x86_64.whl",
            "has_sig": false,
            "md5_digest": "19e8caeab572487793a333cd1150f6da",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1726342,
            "upload_time": "2024-04-23T18:43:44",
            "upload_time_iso_8601": "2024-04-23T18:43:44.300630Z",
            "url": "https://files.pythonhosted.org/packages/76/dc/205631b463ccac1270c95224732382911889593e94814ad4a1ef823bf8ef/qsharp-1.4.0-cp37-abi3-manylinux_2_31_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b1ed39c392d2c838afa1acd800dbe6091733c85cdc4e6694bc9d892231d2c3c1",
                "md5": "9eaea55b2650233c5a92c4eb7b83e39b",
                "sha256": "3a00eba1dce292904c941588026584303364b1043dbd8425e20bf8680ba6a39f"
            },
            "downloads": -1,
            "filename": "qsharp-1.4.0-cp37-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "9eaea55b2650233c5a92c4eb7b83e39b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1696381,
            "upload_time": "2024-04-23T18:43:46",
            "upload_time_iso_8601": "2024-04-23T18:43:46.799633Z",
            "url": "https://files.pythonhosted.org/packages/b1/ed/39c392d2c838afa1acd800dbe6091733c85cdc4e6694bc9d892231d2c3c1/qsharp-1.4.0-cp37-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c939bdd2f8b94d0087c77803dd48dcc82e0a4414f86ea00bcb347df48af6776c",
                "md5": "4864f49af2f3adfcbcbcfef09f348f1f",
                "sha256": "d90a5323764e07f8986523403e852e6af20acbe15f71e0d38d45c34d5f515bef"
            },
            "downloads": -1,
            "filename": "qsharp-1.4.0-cp37-abi3-win_arm64.whl",
            "has_sig": false,
            "md5_digest": "4864f49af2f3adfcbcbcfef09f348f1f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 1603175,
            "upload_time": "2024-04-23T18:43:48",
            "upload_time_iso_8601": "2024-04-23T18:43:48.958418Z",
            "url": "https://files.pythonhosted.org/packages/c9/39/bdd2f8b94d0087c77803dd48dcc82e0a4414f86ea00bcb347df48af6776c/qsharp-1.4.0-cp37-abi3-win_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-23 18:43:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "microsoft",
    "github_project": "qsharp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "qsharp"
}
        
Elapsed time: 0.26267s