qsharp 1.28.7.dev0__py3-none-any.whl → 1.29.0.dev0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,104 @@
1
+ Metadata-Version: 2.4
2
+ Name: qsharp
3
+ Version: 1.29.0.dev0
4
+ Classifier: License :: OSI Approved :: MIT License
5
+ Classifier: Development Status :: 5 - Production/Stable
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.10
9
+ Classifier: Programming Language :: Python :: 3.11
10
+ Classifier: Programming Language :: Python :: 3.12
11
+ Classifier: Programming Language :: Python :: 3.13
12
+ Classifier: Programming Language :: Python
13
+ Classifier: Operating System :: MacOS
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Requires-Python: >=3.10
17
+ Description-Content-Type: text/markdown
18
+ Requires-Dist: qdk>=1.29.0.dev0
19
+ Provides-Extra: jupyterlab
20
+ Requires-Dist: qdk[jupyter]; extra == "jupyterlab"
21
+ Provides-Extra: widgets
22
+ Requires-Dist: qdk[jupyter]; extra == "widgets"
23
+ Provides-Extra: qiskit
24
+ Requires-Dist: qdk[qiskit]; extra == "qiskit"
25
+ Provides-Extra: cirq
26
+ Requires-Dist: qdk[cirq]; extra == "cirq"
27
+ Provides-Extra: qre
28
+ Requires-Dist: qdk[qre]; extra == "qre"
29
+
30
+ # `qsharp` (compatibility shim)
31
+
32
+ > **Deprecated.** The `qsharp` package is a thin compatibility shim that
33
+ > re-exports the [`qdk`](https://pypi.org/project/qdk/) public API.
34
+ > New projects should use `qdk` directly.
35
+
36
+ ## Installation
37
+
38
+ ```bash
39
+ pip install qsharp
40
+ ```
41
+
42
+ This installs the `qdk` package as a dependency. For new projects, consider
43
+ installing `qdk` directly instead:
44
+
45
+ ```bash
46
+ pip install qdk
47
+ ```
48
+
49
+ ## Migration
50
+
51
+ Replace:
52
+
53
+ ```python
54
+ import qsharp
55
+ qsharp.init()
56
+ qsharp.eval("...")
57
+ ```
58
+
59
+ With:
60
+
61
+ ```python
62
+ import qdk
63
+ qdk.init()
64
+ ```
65
+
66
+ Optional extras previously installed via `qsharp[…]` are now available as
67
+ `qdk[…]`:
68
+
69
+ | Old extra | New extra |
70
+ | ---------------------- | ---------------- |
71
+ | `qsharp[jupyterlab]` | `qdk[jupyter]` |
72
+ | `qsharp[widgets]` | `qdk[jupyter]` |
73
+ | `qsharp[qiskit]` | `qdk[qiskit]` |
74
+ | `qsharp[cirq]` | `qdk[cirq]` |
75
+
76
+ ## What this package provides
77
+
78
+ When imported, the `qsharp` shim:
79
+
80
+ 1. Emits a `DeprecationWarning` directing users to migrate to `qdk`.
81
+ 2. Re-exports the core Q# interpreter API (`init`, `eval`, `run`, `compile`,
82
+ `circuit`, `estimate`, `dump_machine`, `dump_circuit`, `dump_operation`,
83
+ `set_quantum_seed`, `set_classical_seed`, etc.) from `qdk.qsharp`.
84
+ 3. Re-exports key types: `Result`, `Pauli`, `QSharpError`, `TargetProfile`,
85
+ `StateDump`, `ShotResult`, `PauliNoise`, `DepolarizingNoise`,
86
+ `BitFlipNoise`, `PhaseFlipNoise`, `CircuitGenerationMethod`.
87
+
88
+ Submodules such as `qsharp.estimator`, `qsharp.openqasm`, and
89
+ `qsharp.code` similarly re-export from their `qdk` counterparts.
90
+
91
+ ## Telemetry
92
+
93
+ This library sends telemetry via the `qdk` package. To disable it, set
94
+ the environment variable `QDK_PYTHON_TELEMETRY=none`.
95
+
96
+ ## Support
97
+
98
+ For more information about the Microsoft Quantum Development Kit, visit
99
+ [https://aka.ms/qdk](https://aka.ms/qdk).
100
+
101
+ ## Contributing
102
+
103
+ Visit the Quantum Development Kit GitHub repository at [https://github.com/microsoft/qdk](https://github.com/microsoft/qdk)
104
+ to find out more about the project.
@@ -36,7 +36,7 @@ qsharp/qre/interop/__init__.py,sha256=q6rl2D5gQyCxsO2lAYxdScPK21jUBo6IC1QJF5qLLC
36
36
  qsharp/qre/interop/_cirq.py,sha256=4c7lbL4sCMTOOwr4CtqD8SoXYvqjIt7Y5kDl6R7fOZU,167
37
37
  qsharp/qre/models/__init__.py,sha256=kTs75wZbm8-KuMssiSJ_3TnaEWIE5Tgpd4_Kt3ZuRpk,157
38
38
  qsharp/utils/__init__.py,sha256=d5a1-QLXPBhR_44ASwYNXbN9U9Elfyj-y2EsTMetl8g,229
39
- qsharp-1.28.7.dev0.dist-info/METADATA,sha256=DkU3kBPYRf-rqkt_uVU6CKBS9CoEMoH8zYNXNG_ZHNY,2757
40
- qsharp-1.28.7.dev0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
41
- qsharp-1.28.7.dev0.dist-info/top_level.txt,sha256=gRwxwlDQF9zt-WdPz_V1BJfEH8mt4BuKO_FUrYlvOJI,7
42
- qsharp-1.28.7.dev0.dist-info/RECORD,,
39
+ qsharp-1.29.0.dev0.dist-info/METADATA,sha256=_fVlkAqvVcabf-yNOuTzZCCk3q5pRQcpyVysHEvOLN0,3118
40
+ qsharp-1.29.0.dev0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
41
+ qsharp-1.29.0.dev0.dist-info/top_level.txt,sha256=gRwxwlDQF9zt-WdPz_V1BJfEH8mt4BuKO_FUrYlvOJI,7
42
+ qsharp-1.29.0.dev0.dist-info/RECORD,,
@@ -1,84 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: qsharp
3
- Version: 1.28.7.dev0
4
- Classifier: License :: OSI Approved :: MIT License
5
- Classifier: Development Status :: 5 - Production/Stable
6
- Classifier: Intended Audience :: Developers
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Programming Language :: Python :: 3.10
9
- Classifier: Programming Language :: Python :: 3.11
10
- Classifier: Programming Language :: Python :: 3.12
11
- Classifier: Programming Language :: Python :: 3.13
12
- Classifier: Programming Language :: Python
13
- Classifier: Operating System :: MacOS
14
- Classifier: Operating System :: Microsoft :: Windows
15
- Classifier: Operating System :: POSIX :: Linux
16
- Requires-Python: >=3.10
17
- Description-Content-Type: text/markdown
18
- Requires-Dist: qdk>=1.28.7.dev0
19
- Provides-Extra: jupyterlab
20
- Requires-Dist: qdk[jupyter]; extra == "jupyterlab"
21
- Provides-Extra: widgets
22
- Requires-Dist: qdk[jupyter]; extra == "widgets"
23
- Provides-Extra: qiskit
24
- Requires-Dist: qdk[qiskit]; extra == "qiskit"
25
- Provides-Extra: cirq
26
- Requires-Dist: qdk[cirq]; extra == "cirq"
27
- Provides-Extra: qre
28
- Requires-Dist: qdk[qre]; extra == "qre"
29
-
30
- # Q# Language Support for Python
31
-
32
- > **Note:** The `qsharp` package is deprecated. Please use the [`qdk`](https://pypi.org/project/qdk/) package instead. This package is a thin compatibility shim that re-exports the `qdk` public API so that existing code continues to work.
33
-
34
- Q# is an open-source, high-level programming language for developing and running quantum algorithms.
35
- The `qsharp` package for Python provides interoperability with the Q# interpreter, making it easy
36
- to simulate Q# programs within Python.
37
-
38
- ## Installation
39
-
40
- ```bash
41
- pip install qdk
42
- ```
43
-
44
- For backward compatibility, `pip install qsharp` also works and will install `qdk` as a dependency.
45
-
46
- ## Usage
47
-
48
- ```python
49
- from qdk import qsharp
50
- ```
51
-
52
- Then, use the `%%qsharp` cell magic to run Q# directly in Jupyter notebook cells:
53
-
54
- ```qsharp
55
- %%qsharp
56
-
57
- import Std.Diagnostics.*;
58
-
59
- @EntryPoint()
60
- operation BellState() : Unit {
61
- use qs = Qubit[2];
62
- H(qs[0]);
63
- CNOT(qs[0], qs[1]);
64
- DumpMachine();
65
- ResetAll(qs);
66
- }
67
-
68
- BellState()
69
- ```
70
-
71
- ## Telemetry
72
-
73
- This library sends telemetry. Minimal anonymous data is collected to help measure feature usage and performance.
74
- All telemetry events can be seen in the source file [telemetry_events.py](https://github.com/microsoft/qdk/tree/main/source/qdk_package/qdk/telemetry_events.py).
75
-
76
- To disable sending telemetry from this package, set the environment variable `QDK_PYTHON_TELEMETRY=none`
77
-
78
- ## Support
79
-
80
- For more information about the Microsoft Quantum Development Kit, visit [https://aka.ms/qdk](https://aka.ms/qdk).
81
-
82
- ## Contributing
83
-
84
- Q# welcomes your contributions! Visit the Q# GitHub repository at [https://github.com/microsoft/qdk] to find out more about the project.