This project has been archived by its maintainers, and is no longer receiving any updates.
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.
Release files for qsharp 1.31.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qsharp-1.31.0-py3-none-any.whl | Python 3 | none | any | Details |
Release files / qsharp-1.31.0-py3-none-any.whl
| Download URL | qsharp-1.31.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55c3b116aa2a14f733b43c41b2a8a3271570fabfdbf8de43de10098f00345cf2
|
|
BLAKE2b-256 checksum How to use checksums |
d29894ea86973f41da1f24a4c8048349a91df16e83f8ef3588184559ffbc3b9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
RestSharp/106.13.0.0
|