Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

qsharp (compatibility shim)

Deprecated. The qsharp package is a thin compatibility shim that re-exports the qdk public API. New projects should use qdk directly.

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:

  1. Emits a DeprecationWarning directing users to migrate to qdk.
  2. 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.) from qdk.qsharp.
  3. 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)

Table of built distributions (wheels) for qsharp 1.31.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.31.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page