qsharp-lang


Nameqsharp-lang JSON
Version 1.0.29.dev0 PyPI version JSON
download
home_pagehttps://github.com/microsoft/qsharp
SummaryQ# Python Bindings
upload_time2024-01-08 23:46:39
maintainerNone
docs_urlNone
authorMicrosoft
requires_python>=3.7
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-lang` 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-lang
```

## 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 documentation and to browse issues, please visit the Q# project wiki at [https://github.com/microsoft/qsharp/wiki].

## 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-lang",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "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-lang` 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-lang\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 documentation and to browse issues, please visit the Q# project wiki at [https://github.com/microsoft/qsharp/wiki].\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.0.29.dev0",
    "project_urls": {
        "Homepage": "https://github.com/microsoft/qsharp",
        "Source Code": "https://github.com/microsoft/qsharp"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "3287b905040c4c084a471174efbda063a3e5fd8eef068b0361df5f6c3bccc3ef",
                "md5": "e7136e41de964e1bdb51b0a9cd428a7f",
                "sha256": "ce5115e75046b2af3c4b69f4ca977c6b0bf991f94fbd10487b0efecce0d41563"
            },
            "downloads": -1,
            "filename": "qsharp_lang-1.0.29.dev0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl",
            "has_sig": false,
            "md5_digest": "e7136e41de964e1bdb51b0a9cd428a7f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2621090,
            "upload_time": "2024-01-08T23:46:39",
            "upload_time_iso_8601": "2024-01-08T23:46:39.520815Z",
            "url": "https://files.pythonhosted.org/packages/32/87/b905040c4c084a471174efbda063a3e5fd8eef068b0361df5f6c3bccc3ef/qsharp_lang-1.0.29.dev0-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "ca37d25d6efb5b13736bd9a86a1f891f4537b5738c9a2c52a8ba1bd0e1d80ec0",
                "md5": "4211bfcacc4e255f4b53aca6c51311a7",
                "sha256": "8fce61c8b4d807fc2dd6f27f59517c9aec9fd44a2441936e38eaad06e6e7cda4"
            },
            "downloads": -1,
            "filename": "qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_aarch64.whl",
            "has_sig": false,
            "md5_digest": "4211bfcacc4e255f4b53aca6c51311a7",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 1305026,
            "upload_time": "2024-01-08T23:46:42",
            "upload_time_iso_8601": "2024-01-08T23:46:42.118360Z",
            "url": "https://files.pythonhosted.org/packages/ca/37/d25d6efb5b13736bd9a86a1f891f4537b5738c9a2c52a8ba1bd0e1d80ec0/qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_aarch64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c1a38e72a84800e5e05f81e9e6dd107da30205a318b57e9715a55203a74998e0",
                "md5": "8448ef9a3d479b920a2741ec289ddc7b",
                "sha256": "1795b1cd1ff95513688bd3bf0d79407b3c93843738c5b4adb6fa3dd93b004c63"
            },
            "downloads": -1,
            "filename": "qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_x86_64.whl",
            "has_sig": false,
            "md5_digest": "8448ef9a3d479b920a2741ec289ddc7b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 1401312,
            "upload_time": "2024-01-08T23:46:44",
            "upload_time_iso_8601": "2024-01-08T23:46:44.255462Z",
            "url": "https://files.pythonhosted.org/packages/c1/a3/8e72a84800e5e05f81e9e6dd107da30205a318b57e9715a55203a74998e0/qsharp_lang-1.0.29.dev0-cp37-abi3-manylinux_2_31_x86_64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e435bde56bc9f87db7c00d123f016fa94e047542f394730a69ad2f4aa042f51d",
                "md5": "db56cd44a57a8df101fa858152e51dca",
                "sha256": "88dd9493a7579ac225921d2f4cfeff8ce20e6dc058827ab338ac30390e713317"
            },
            "downloads": -1,
            "filename": "qsharp_lang-1.0.29.dev0-cp37-abi3-win_amd64.whl",
            "has_sig": false,
            "md5_digest": "db56cd44a57a8df101fa858152e51dca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 1410424,
            "upload_time": "2024-01-08T23:46:46",
            "upload_time_iso_8601": "2024-01-08T23:46:46.424938Z",
            "url": "https://files.pythonhosted.org/packages/e4/35/bde56bc9f87db7c00d123f016fa94e047542f394730a69ad2f4aa042f51d/qsharp_lang-1.0.29.dev0-cp37-abi3-win_amd64.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "0fe7b484245637d986e011865be4a34914a92efae556c8d4237b01f880aae170",
                "md5": "f142f003406983ce7f7de2882ab68b64",
                "sha256": "dc66f64a4b000dbd8fcd0cb7b0bfff02544196fcecdf1db990e9879639a1eb0b"
            },
            "downloads": -1,
            "filename": "qsharp_lang-1.0.29.dev0-cp37-abi3-win_arm64.whl",
            "has_sig": false,
            "md5_digest": "f142f003406983ce7f7de2882ab68b64",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 1322999,
            "upload_time": "2024-01-08T23:46:49",
            "upload_time_iso_8601": "2024-01-08T23:46:49.031923Z",
            "url": "https://files.pythonhosted.org/packages/0f/e7/b484245637d986e011865be4a34914a92efae556c8d4237b01f880aae170/qsharp_lang-1.0.29.dev0-cp37-abi3-win_arm64.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-01-08 23:46:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "microsoft",
    "github_project": "qsharp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "qsharp-lang"
}
        
Elapsed time: 0.15306s