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.
Metadata
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 | Actions Reset |
|---|---|---|---|---|
| qsharp-1.31.0-py3-none-any.whl | Python 3 | none | any | Details for qsharp-1.31.0-py3-none-any.whl |
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
|
Security for qsharp 1.31.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.