No project description provided
Project description
qsharp (compatibility shim)
Deprecated. The
qsharppackage is a thin compatibility shim that re-exports theqdkpublic API. New projects should useqdkdirectly.
Installation
pip install qsharp
This installs the qdk package as a dependency. For new projects, consider
installing qdk directly instead:
pip install qdk
Migration
Replace:
import qsharp
qsharp.init()
qsharp.eval("...")
With:
import qdk
qdk.init()
Optional extras previously installed via qsharp[…] are now available as
qdk[…]:
| Old extra | New extra |
|---|---|
qsharp[jupyterlab] |
qdk[jupyter] |
qsharp[widgets] |
qdk[jupyter] |
qsharp[qiskit] |
qdk[qiskit] |
qsharp[cirq] |
qdk[cirq] |
What this package provides
When imported, the qsharp shim:
- Emits a
DeprecationWarningdirecting users to migrate toqdk. - Re-exports the core Q# interpreter API (
init,eval,run,compile,circuit,estimate,dump_machine,dump_circuit,dump_operation,set_quantum_seed,set_classical_seed, etc.) fromqdk.qsharp. - Re-exports key types:
Result,Pauli,QSharpError,TargetProfile,StateDump,ShotResult,PauliNoise,DepolarizingNoise,BitFlipNoise,PhaseFlipNoise,CircuitGenerationMethod.
Submodules such as qsharp.estimator, qsharp.openqasm, and
qsharp.code similarly re-export from their qdk counterparts.
Telemetry
This library sends telemetry via the qdk package. To disable it, set
the environment variable QDK_PYTHON_TELEMETRY=none.
Support
For more information about the Microsoft Quantum Development Kit, visit https://aka.ms/qdk.
Contributing
Visit the Quantum Development Kit GitHub repository at https://github.com/microsoft/qdk to find out more about the project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qsharp-1.29.3.dev0-py3-none-any.whl.
File metadata
- Download URL: qsharp-1.29.3.dev0-py3-none-any.whl
- Upload date:
- Size: 16.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: RestSharp/106.13.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a59e566372342380c44d20d2cab160d65266eddd84f44dc0874313ae8af0000
|
|
| MD5 |
4e2d61917973b4d299411e74bfec6396
|
|
| BLAKE2b-256 |
bdd36217aac250c064e1b50206273f99e4ca9f727eb3843e983250a175c7f1a4
|