Metadata-Version: 2.4
Name: qsharp
Version: 1.27.5.dev0
Classifier: License :: OSI Approved :: MIT License
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python
Classifier: Programming Language :: Rust
Classifier: Operating System :: MacOS
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Requires-Dist: qsharp-jupyterlab ; extra == 'jupyterlab'
Requires-Dist: qsharp-widgets ; extra == 'widgets'
Requires-Dist: qiskit>=1.2.2,<3.0.0 ; extra == 'qiskit'
Requires-Dist: cirq-core>=1.6.1,<1.7 ; extra == 'cirq'
Requires-Dist: cirq-core==1.6.1,<1.7 ; extra == 'qre'
Requires-Dist: pandas>=2.1 ; extra == 'qre'
Requires-Dist: ply>=3.11 ; extra == 'qre'
Requires-Dist: pyqir>=0.12.3,<0.13 ; extra == 'qre'
Provides-Extra: jupyterlab
Provides-Extra: widgets
Provides-Extra: qiskit
Provides-Extra: cirq
Provides-Extra: qre
Home-Page: https://github.com/microsoft/qdk
Requires-Python: >=3.10
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM

# 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

import Std.Diagnostics.*;

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

BellState()
```

## Telemetry

This library sends telemetry. Minimal anonymous data is collected to help measure feature usage and performance.
All telemetry events can be seen in the source file [telemetry_events.py](https://github.com/microsoft/qdk/tree/main/source/pip/qsharp/telemetry_events.py).

To disable sending telemetry from this package, set the environment variable `QDK_PYTHON_TELEMETRY=none`

## Support

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

## Contributing

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

