Qsharp

Latest version: v1.13.2

Safety actively analyzes 706267 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

1.13

We are excited to release v1.13 of the Azure Quantum Development Kit! Here are some highlights of features included in this month's release:

`Test` Attribute and VS Code Test Explorer Integration
2095 Introduced a new attribute, `Test`, which identifies unit tests written in Q. By integrating with the Text Explorer feature in VS Code, you can now explore, run, and review Q unit test execution:
<img width="874" alt="image" src="https://github.com/user-attachments/assets/f9db628d-59b3-4f5a-8b52-8e466bd1b69c" />
See the wiki page on [Testing Q Code in VS Code](https://github.com/microsoft/qsharp/wiki/Testing-Q%23-Code-in-VS-Code) for more information.

"Q: Add Project Reference" VS Code Command Enhancements
2079 enhanced the VS Code command for adding references to a Q project, available when editing a `qsharp.json` file:
<img width="835" alt="image" src="https://github.com/user-attachments/assets/c2060070-9628-4723-8750-bb9b62442755" />
When invoking the command, you'll now see a choice to either import from GitHub or search the currently opened workspace for other Q projects. When choosing GitHub, you'll get a suggestion of known libraries and their available versions to choose from, and the corresponding external project reference snippet will automatically be added to your current `qsharp.json`:
<img width="835" alt="image" src="https://github.com/user-attachments/assets/d09d750b-ed50-4a79-b0b6-e6971574b88d" />
<img width="835" alt="image" src="https://github.com/user-attachments/assets/026f1aba-a043-46e4-82d6-223248dd10a0" />

More Python Interoperability for Callables
2091 added more support for using Python functions that wrap Q callables across our Python package APIs. This makes it easier to pass Python arguments into Q for features like resource estimation with `qsharp.estimate()`, running multiple shots with `qsharp.run()`, compiling to QIR with `qsharp.compile()`, or generating circuits with `qsharp.circuit()`:
![image](https://github.com/user-attachments/assets/cf3c4da1-ed2c-494d-8c04-d2db8a57fccd)
For more information on using Q callables directly in Python, see the [Invoking Q Callables from Python ](https://github.com/microsoft/qsharp/wiki/Invoking-Q%23-callables-from-Python)wiki page.

Adaptive Profile Floating-Point Computation Extension
2078 added support for an additional QIR Adaptive profile extension: floating-point computation. By choosing `QIR Adaptive RIF` as your compilation profile, you can enable **R**eset, **I**nteger computation, and **F**loating-point computation for code generation. This allows you to write programs where the values of variables with Q type `Double` can be dyanmically calculated from measurement results at runtime, and the output QIR will include arithmetic and comparison instructions corresponding to your code, enabling even more adaptive algorithms.
<img width="1018" alt="image" src="https://github.com/user-attachments/assets/35f92103-d0f9-4737-9d79-7d3d4244af36" />

Note that this profile extension must be supported by the target backend or runtime environment for the resulting code to execute. See the QIR specification section on [Classical Computation extensions](https://github.com/qir-alliance/qir-spec/blob/main/specification/under_development/profiles/Adaptive_Profile.md#bullet-5-classical-computations) to the Adaptive profile for more details.

Other Notable Features and Fixes
* Fix `Relabel` for odd size arrays by swernli in https://github.com/microsoft/qsharp/pull/2082
* Syntax highlighting for functions, variables and numbers by Morcifer in https://github.com/microsoft/qsharp/pull/2088
* Fix `Exp` on qubit arrays larger than 2 with single `PauliI` by swernli in https://github.com/microsoft/qsharp/pull/2086
* Mutable variables in dynamic branches prevent full constant folding in partial evaluation by swernli in https://github.com/microsoft/qsharp/pull/2089
* Add `TestMatrix` functionality to qtest by sezna in https://github.com/microsoft/qsharp/pull/2037
* Added simple VQE sample by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/2073
* Fix global phase for controlled-T, R1 by swernli in https://github.com/microsoft/qsharp/pull/2112
* Fix widgets sometimes rendering in light theme when VS Code is in a dark theme by billti in https://github.com/microsoft/qsharp/pull/2120
* LookAheadDKRSAddLE now accepts carry-in by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/2119
* Add lint for double (in)equality by orpuente-MS in https://github.com/microsoft/qsharp/pull/2104
* Replaced custom ApplyAndAssuming0Target with AND from std by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/2123
* Fix language service panic when file isn't listed in the `files` field of `qsharp.json` by minestarks in https://github.com/microsoft/qsharp/pull/2109
* Long gate in ASCII art circuits - lengthen column width when necessary by Morcifer in https://github.com/microsoft/qsharp/pull/2126
* Fix UDT re-exports by sezna in https://github.com/microsoft/qsharp/pull/2137

New Contributors
* Morcifer made their first contribution in https://github.com/microsoft/qsharp/pull/2088

**Full Changelog**: https://github.com/microsoft/qsharp/compare/v1.12...v1.13

1.12

We are excited to release v1.12 of the Azure Quantum Development Kit! Here are some highlights of features included in this month's release:

Python interoperability improvements
You can now import and invoke your Q callables for simulation directly from Python as functions. Your callables defined in `%%qsharp` magic cells, through calls to `qsharp.eval`, or loaded from projects in `qsharp.init` can now be imported from the `qsharp.code` module:
python
import qsharp

qsharp.eval("""
operation Superposition() : Result {
use q = Qubit();
H(q);
Std.Diagnostics.DumpMachine();
MResetZ(q)
}
""")

from qsharp.code import Superposition
result = Superposition()

For more details and current limitations, see [Invoking Q callables from Python](https://github.com/microsoft/qsharp/wiki/Invoking-Q%23-callables-from-Python) in the wiki.

Syntax for capturing state dumps from `DumpMachine` or `DumpRegister` and operation matrices from `DumpOperation` calls in your Q code has also been improved (see 2042)

Deprecation of `set` keyword
The `set` keyword used for updating mutable values is now deprecated, so where you previously had to use `set x += 1` you can now just write `x += 1`. In addition, the compiler includes a new lint that defaults to "allow" that you can use to warn or error on usage of `set` in your code (see 2062).

`ApplyUnitary` operation for simulation
When running against the simulator, your Q code can call `ApplyUnitary` and pass a unitary matrix represented by a `Std.Math.Complex[][]` along with an array of qubit targets and have the simulator directly apply that unitary to the current sparse state vector.

Increase minimum versions for Python and Ubuntu
Starting with v1.12, the minimum supported Python version for the qsharp package is Python 3.9. Along with this change, the minimum compatible version of Ubuntu has been increased to 22.04 (see 2061)


**Full Changelog**: https://github.com/microsoft/qsharp/compare/v1.11.1...v1.12

1.11.1

We are excited to release v1.11.1 of the Azure Quantum Development Kit! This month's release includes features and bug fixes, such as:

Configure Pauli Noise Dynamically within Q
You can now use the `ConfigurePauliNoise` function to dynamically update noise settings during simulation, allowing samples, exercises, or test code to directly set noise used in testing (https://github.com/microsoft/qsharp/pull/1997).

Stabilization of the Microsoft.Quantum.Unstable libraries
The `Arithmetic`, `StatePreparation`, and `TableLookup` libraries have been stabilized and are now available under `Std`. Several samples and libraries have been updated to reflect the new location, while the `Microsoft.Quantum.Unstable` namespace will be preserved for backward compatibility (https://github.com/microsoft/qsharp/pull/2022, https://github.com/microsoft/qsharp/pull/2043).

1.10.1

We are excited to release v1.10 of the Azure Quantum Development Kit! This month's release includes several new features and improvements including:

Code editing improvements

Code editing is now greatly improved. A couple of examples of the many improvements:

- **Context aware completions** (1947) show only the relevant completions for the location. For example, only showing types when in a type position:

<img width="346" alt="image" src="https://github.com/user-attachments/assets/347c4fc9-c746-438d-bb1a-998b65375e79">

- **Namespace member** (1947) completion lists are now provided when drilling into namespaces:

<img width="346" alt="image" src="https://github.com/user-attachments/assets/09c92c4d-68e6-4fbd-b647-9a4fc064b50c">

- **User Defined Type** (1954) member completions are now populated

<img width="383" alt="image" src="https://github.com/user-attachments/assets/577addec-32f7-465f-9c3d-b865e033b42c">

And much more! Parser error recovery has also been greatly improved so that editor assistance is available whilst mid-edit in many more scenarios.

Noisy simulation

You can now add Pauli noise to simulations run from Python or VS Code (1971, 1975, 1980). This can help model the results of running on a real quantum machine for education purposes, and to help develop and test the effectiveness of error correction.

Below shows the results of configuring 5% bit-flip noise in VS Code and running a histogram on the GHZ sample. This would return only $\ket{000}$ and $\ket{111}$ shot results if run in a noise free simulation.

<img width="944" alt="image" src="https://github.com/user-attachments/assets/5274198c-ece5-4049-ac44-ae9e829fc51d">

To see how to use noisy simulation in Python, check out the sample notebook at <https://github.com/microsoft/qsharp/blob/main/samples/notebooks/noise.ipynb>

Refreshed API docs interface

The in-editor Q API documentation has had a UI refresh (1978). This is accessed via the "Q: Show API documentation" command in the command palette when editing a Q file. The new UX allows you to quickly &amp; easily search &amp; navigate the APIs within your project, referenced projects, and the standard library.

<img width="792" alt="image" src="https://github.com/user-attachments/assets/0b6e6026-492f-461d-a9b1-30762915020f">

File icons

The Q file extension (.qs) now gets a unique icon in VS Code (1976)

<img width="279" alt="image" src="https://github.com/user-attachments/assets/6af754e0-b6fa-45b4-b68e-6e379e988cd4">

Custom measurements and resets

Previously you could define custom gates, but not custom measurement or reset operations. With 1967, 1981, and 1985 this is now possible. This allows for the definition and use of custom operations for quantum simulation and QIR code generation.

Samples for this feature will be added shortly, in the meantime see the test code at <https://github.com/microsoft/qsharp/blob/v1.10.1/compiler/qsc/src/codegen/tests.rs#L529> for an example of how this may be used.

Python telemetry

In this release we have added telemetry to our `qsharp` Python package to collect minimal and anonymous metrics on feature usage and performance. This will allow us to focus our investments going forward on the most valuable areas. Please see the [notes in the package readme](https://github.com/microsoft/qsharp/blob/v1.10.1/pip/README.md#telemetry) for details on what is collected and how to disable it.

What's changed

And much more!! See the below list of changes in this release for the full details.

* Added DoubleAsStringWithPrecision function - Multiple Katas by devikamehra in https://github.com/microsoft/qsharp/pull/1897
* bump vscode/test-web by minestarks in https://github.com/microsoft/qsharp/pull/1945
* Refactor physical resource estimation by msoeken in https://github.com/microsoft/qsharp/pull/1943
* Update yarn dependencies by billti in https://github.com/microsoft/qsharp/pull/1948
* Update filtering for targets by cesarzc in https://github.com/microsoft/qsharp/pull/1949
* Add summary lines back into stdlib readmes by sezna in https://github.com/microsoft/qsharp/pull/1952
* add Q package registry document by sezna in https://github.com/microsoft/qsharp/pull/1932
* Error budget pruning strategy in resource estimator core by msoeken in https://github.com/microsoft/qsharp/pull/1951
* Use all github dependencies in published libraries by sezna in https://github.com/microsoft/qsharp/pull/1956
* Set the markdown renderer on load by billti in https://github.com/microsoft/qsharp/pull/1957
* Bump pyo3 from 0.22.2 to 0.22.4 by dependabot in https://github.com/microsoft/qsharp/pull/1964
* Minor lint fix for Rust 1.81 by swernli in https://github.com/microsoft/qsharp/pull/1965
* Fix to partial evaluation generating branch instructions on constant conditions by cesarzc in https://github.com/microsoft/qsharp/pull/1963
* Show no quantum state when debugging code with no qubits by swernli in https://github.com/microsoft/qsharp/pull/1953
* More precise completions and namespace member completions by minestarks in https://github.com/microsoft/qsharp/pull/1947
* allow needless raw string hashes and unnecessary wraps by sezna in https://github.com/microsoft/qsharp/pull/1969
* UDT field completions by minestarks in https://github.com/microsoft/qsharp/pull/1954
* Rust 1.82 by idavis in https://github.com/microsoft/qsharp/pull/1970
* Added Pauli noise support to sparse simulator by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1971
* Add custom measurement operations to Q by orpuente-MS in https://github.com/microsoft/qsharp/pull/1967
* Expose pauli noise settings in VS Code by billti in https://github.com/microsoft/qsharp/pull/1975
* Python clients can now run simulation with Pauli noise by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1974
* Add .qs file icons by billti in https://github.com/microsoft/qsharp/pull/1976
* Fix py38 types by billti in https://github.com/microsoft/qsharp/pull/1977
* Python: Result should implement comparison operators by minestarks in https://github.com/microsoft/qsharp/pull/1979
* Improve the built-in API docs UX by billti in https://github.com/microsoft/qsharp/pull/1978
* Added sample notebook with noise by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1980
* Add support for custom resets using the `Reset()` attribute by orpuente-MS in https://github.com/microsoft/qsharp/pull/1981
* Telementry event for noisy simulation by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1982
* Unify implementations of custom measurements and custom resets by orpuente-MS in https://github.com/microsoft/qsharp/pull/1985
* Initial Python telemetry by billti in https://github.com/microsoft/qsharp/pull/1972
* Fix Py3.8 type error by billti in https://github.com/microsoft/qsharp/pull/1988
* More parser error recovery, unlocking completions in more locations by minestarks in https://github.com/microsoft/qsharp/pull/1987
* `DumpMachine` output in Python and console should be empty with no qubits allocated by swernli in https://github.com/microsoft/qsharp/pull/1984
* `DumpMachine` in playground should display message when no qubits are allocated by swernli in https://github.com/microsoft/qsharp/pull/1989
* Disable completions in attribute arguments by minestarks in https://github.com/microsoft/qsharp/pull/1986
* Allow `Default::default()` pattern by sezna in https://github.com/microsoft/qsharp/pull/1991
* Add telemetry events for interop by idavis in https://github.com/microsoft/qsharp/pull/1990
* Bump version to 1.10 by billti in https://github.com/microsoft/qsharp/pull/1992
* Revert "Set min python version to 3.9 and add 3.12 to list" by idavis in https://github.com/microsoft/qsharp/pull/1996
* No completions in comments by minestarks in https://github.com/microsoft/qsharp/pull/1999


**Full Changelog**: https://github.com/microsoft/qsharp/compare/v1.9.0...v1.10.1

1.9.0

The 1.9.0 release of the QDK includes interoperability with Qiskit circuits built upon the core Q compiler infrastructure.

The Qiskit interop provided by the QDK includes:

- [Resource estimation](resource-estimation) for their Qiskit circuits locally
- [Q Simulation](q-simulation) of Qiskit circuits using Q's simulation capabilities
- [QIR generation](qir-generation) from Qiskit circuits leveraging the [modern QDKs advanced code generation capabilities](https://devblogs.microsoft.com/qsharp/integrated-hybrid-support-in-the-azure-quantum-development-kit/).

The [Qiskit interop wiki page](https://github.com/microsoft/qsharp/wiki/Qiskit-Interop) provides a brief overview of the integration while detailed examples, potential errors, and usage with parameterized circuits are demonstrated in the [sample Qiskit interop notebook](https://github.com/microsoft/qsharp/tree/main/samples/python_interop/qiskit.ipynb).

In addition to the Qiskit interop feature, the language service for Q will now auto-suggest the new standard library API instead of the legacy `Microsoft.Quantum`-prefixed standard library API. For example, when typing `DumpMachine`, you'll now get a suggested import for `Std.Diagnostics.DumpMachine` instead of `Microsoft.Quantum.Diagnostics.DumpMachine`.

What's Changed
* Remove benchmarking comment bot; Run benches weekly and save results as an artifact by sezna in https://github.com/microsoft/qsharp/pull/1870
* Port signed integer math to modern QDK by sezna in https://github.com/microsoft/qsharp/pull/1841
* Add samples of testing Q code that prepares a quantum state by tcNickolas in https://github.com/microsoft/qsharp/pull/1873
* Simplify display of evaluation results in VS Code by swernli in https://github.com/microsoft/qsharp/pull/1882
* Bump rust dependency versions (except `pyo3`, `rustc_hash`, and `miette`) by sezna in https://github.com/microsoft/qsharp/pull/1876
* Update samples to reflect latest 1.7 changes; Update katas and stdlib to use structs by sezna in https://github.com/microsoft/qsharp/pull/1797
* Remove profile selection for Katas by JPark1023 in https://github.com/microsoft/qsharp/pull/1881
* Include CompareGTSI in the Signed math API by sezna in https://github.com/microsoft/qsharp/pull/1888
* Update Placeholder.qs by HopeAnnihilator in https://github.com/microsoft/qsharp/pull/1890
* Fix GetLink-Tutorial-Playground-state issue 1558 by ggridin in https://github.com/microsoft/qsharp/pull/1855
* update miette to v7.2.0 by sezna in https://github.com/microsoft/qsharp/pull/1889
* Update Node packages by billti in https://github.com/microsoft/qsharp/pull/1894
* Implements serialization for physical resource estimation by msoeken in https://github.com/microsoft/qsharp/pull/1892
* Update pyo3 from v0.20 to v0.22 by sezna in https://github.com/microsoft/qsharp/pull/1893
* Added DoubleAsStringWithPrecision function - Complex Arithmetics by devikamehra in https://github.com/microsoft/qsharp/pull/1883
* Added DoubleAsStringWithPrecision function - Single Qubit Gate by devikamehra in https://github.com/microsoft/qsharp/pull/1884
* Port fixed point library to modern QDK by sezna in https://github.com/microsoft/qsharp/pull/1838
* Katas UI review - Preparing states by SoniaLopezBravo in https://github.com/microsoft/qsharp/pull/1847
* Fix to RCA panic when original tuple binding is dynamic by cesarzc in https://github.com/microsoft/qsharp/pull/1900
* Generic code with code distance and threshold by msoeken in https://github.com/microsoft/qsharp/pull/1896
* Basic interop with Qiskit by idavis in https://github.com/microsoft/qsharp/pull/1899
* Use T gate time for physical factories by msoeken in https://github.com/microsoft/qsharp/pull/1906
* Add more items to RE system API by msoeken in https://github.com/microsoft/qsharp/pull/1907
* Configure ESRP7 by idavis in https://github.com/microsoft/qsharp/pull/1913
* Basic samples for RE API by msoeken in https://github.com/microsoft/qsharp/pull/1915
* Introduce `Relabel` API by swernli in https://github.com/microsoft/qsharp/pull/1905
* Serialize logical post-layout overhead in resource estimation result by msoeken in https://github.com/microsoft/qsharp/pull/1914
* Support Adjoint of `Relabel` by swernli in https://github.com/microsoft/qsharp/pull/1920
* Migrate the standard library to the project system by sezna in https://github.com/microsoft/qsharp/pull/1912
* Bug fixes found during bash by idavis in https://github.com/microsoft/qsharp/pull/1916
* Fix typo in vscode extension's package.json by m1c0l in https://github.com/microsoft/qsharp/pull/1917
* Re-enable simulatable intrinsics for Qiskit/OpenQASM interop by idavis in https://github.com/microsoft/qsharp/pull/1927
* Add str value for TargetProfile by idavis in https://github.com/microsoft/qsharp/pull/1930
* Completions: existing glob import will prevent an exact import with t… by minestarks in https://github.com/microsoft/qsharp/pull/1909
* Playground: Fix error squiggle updates getting dropped by minestarks in https://github.com/microsoft/qsharp/pull/1908
* Add ProtocolSpecification to API by msoeken in https://github.com/microsoft/qsharp/pull/1931
* Migrate core library to the new Stdlib API/projects system by sezna in https://github.com/microsoft/qsharp/pull/1919
* Add `from_str` to `TargetProfile` by idavis in https://github.com/microsoft/qsharp/pull/1937
* Optimize RIR reindexing, QIR qubit use by swernli in https://github.com/microsoft/qsharp/pull/1938
* Update circuits widget sizing behavior by swernli in https://github.com/microsoft/qsharp/pull/1921
* Fix bug preventing display of circuits where same qubit measured more than once by swernli in https://github.com/microsoft/qsharp/pull/1939
* Fix python version compat signature by idavis in https://github.com/microsoft/qsharp/pull/1941
* Add DumpOperation support in Q by billti in https://github.com/microsoft/qsharp/pull/1885
* Control how physical qubits are computed in factories by msoeken in https://github.com/microsoft/qsharp/pull/1940
* Update version to 1.9 by idavis in https://github.com/microsoft/qsharp/pull/1942

New Contributors
* HopeAnnihilator made their first contribution in https://github.com/microsoft/qsharp/pull/1890
* m1c0l made their first contribution in https://github.com/microsoft/qsharp/pull/1917

**Full Changelog**: https://github.com/microsoft/qsharp/compare/v1.8.0...v1.9.0

1.8.0

The 1.8.0 release of the QDK includes a number of improvements and fixes, with a focus on refining the project references and editor completions experience.

The full list of changes is below.

What's Changed
* Fix bug for max_t_factories constraint by msoeken in https://github.com/microsoft/qsharp/pull/1792
* Create Graph Coloring kata, part 1: vertex coloring problem by tcNickolas in https://github.com/microsoft/qsharp/pull/1789
* Katas UI string review - QRNG by SoniaLopezBravo in https://github.com/microsoft/qsharp/pull/1759
* Katas UI string review - Single-qubit gates by SoniaLopezBravo in https://github.com/microsoft/qsharp/pull/1758
* [Samples] Add samples for testing operations in Q by Manvi-Agrawal in https://github.com/microsoft/qsharp/pull/1732
* Fix accumulating perf impact of `qsharp.run` with may shots in Python by swernli in https://github.com/microsoft/qsharp/pull/1769
* Avoid errors in read-only GitHub sources by swernli in https://github.com/microsoft/qsharp/pull/1787
* Support themes in kata previews by billti in https://github.com/microsoft/qsharp/pull/1798
* Fix unit tests on test_interperter doing `startswith(...) != -1` by orpuente-MS in https://github.com/microsoft/qsharp/pull/1733
* Migrate Graph Coloring kata, part 2 by tcNickolas in https://github.com/microsoft/qsharp/pull/1804
* Katas UI review - Complex arithmetic by SoniaLopezBravo in https://github.com/microsoft/qsharp/pull/1803
* Improve ApplyQFT API docs by tcNickolas in https://github.com/microsoft/qsharp/pull/1810
* Migrate QFT kata, part 1 by tcNickolas in https://github.com/microsoft/qsharp/pull/1809
* Migrate nonlocal games 1596 task1 - quantum by ggridin in https://github.com/microsoft/qsharp/pull/1745
* Implicit Namespace Parsing Recovery by ScottCarda-MS in https://github.com/microsoft/qsharp/pull/1808
* Organize standard library code; add `files`; add author and license by sezna in https://github.com/microsoft/qsharp/pull/1801
* Finish migration of QFT kata and publish it by tcNickolas in https://github.com/microsoft/qsharp/pull/1814
* Update rust version to 1.80 by orpuente-MS in https://github.com/microsoft/qsharp/pull/1805
* Move `Unstable` into its own library by sezna in https://github.com/microsoft/qsharp/pull/1802
* Update rust version to 1.80 second step by orpuente-MS in https://github.com/microsoft/qsharp/pull/1806
* QFT kata: fix formula formatting in square wave prep exercise by tcNickolas in https://github.com/microsoft/qsharp/pull/1819
* Migrate nonlocal games: GHZ game classical by ggridin in https://github.com/microsoft/qsharp/pull/1783
* Fixed some broken latex in the Measure doc by ScottCarda-MS in https://github.com/microsoft/qsharp/pull/1825
* Fix test for multi_qubit_measurements/state_modification by tcNickolas in https://github.com/microsoft/qsharp/pull/1830
* Allow the parser to add contextual help text to errors; Add contextual help text for parenthesized for loops by sezna in https://github.com/microsoft/qsharp/pull/1828
* Make entry sample more minimal by Manvi-Agrawal in https://github.com/microsoft/qsharp/pull/1684
* Enforce globally unique names for callables declared as `SimulatableIntrinsic` by swernli in https://github.com/microsoft/qsharp/pull/1831
* Start migration of Phase Estimation kata by tcNickolas in https://github.com/microsoft/qsharp/pull/1824
* Fix `noisy_simulator` panic when initializing with non-square Kraus matrices by orpuente-MS in https://github.com/microsoft/qsharp/pull/1826
* Fix type inference for nested generics by swernli in https://github.com/microsoft/qsharp/pull/1818
* Export Stdlib AND by sezna in https://github.com/microsoft/qsharp/pull/1834
* Added a sample function with an implicit return by filipw in https://github.com/microsoft/qsharp/pull/1811
* Katas UI review - Multiqubit systems by SoniaLopezBravo in https://github.com/microsoft/qsharp/pull/1813
* Simplify targets logic and prepare exclusion list for next release by cesarzc in https://github.com/microsoft/qsharp/pull/1815
* Fix code example in `RFrac` doc comment by swernli in https://github.com/microsoft/qsharp/pull/1839
* Fix missing docs for diagnostic callables by swernli in https://github.com/microsoft/qsharp/pull/1833
* Add API to convert StateDump to a dense array of amplitudes by swernli in https://github.com/microsoft/qsharp/pull/1836
* Fix R1Frac doc comments by swernli in https://github.com/microsoft/qsharp/pull/1851
* Finish migration of QPE kata and publish it by tcNickolas in https://github.com/microsoft/qsharp/pull/1837
* Noisy simulator: return 2d python lists instead of 1d python lists by orpuente-MS in https://github.com/microsoft/qsharp/pull/1786
* Fix duplicate imports being generated when using completions by sezna in https://github.com/microsoft/qsharp/pull/1820
* Support call tracking within Q code by swernli in https://github.com/microsoft/qsharp/pull/1791
* Support qubit count tracking within Q by swernli in https://github.com/microsoft/qsharp/pull/1800
* Update `qsharp.json.schema` to include latest lints by sezna in https://github.com/microsoft/qsharp/pull/1853
* Fix spans for lifted lambda idents by swernli in https://github.com/microsoft/qsharp/pull/1854
* Blocks in while-expr should enforce `Unit` type by swernli in https://github.com/microsoft/qsharp/pull/1852
* Katas UI review - QKD by SoniaLopezBravo in https://github.com/microsoft/qsharp/pull/1846
* Include completions for items from the same file; Clean up completions generation for callables by sezna in https://github.com/microsoft/qsharp/pull/1863
* Katas UI review - Multiqubit measurements by SoniaLopezBravo in https://github.com/microsoft/qsharp/pull/1844
* Added summary section in chemistry.py by devikamehra in https://github.com/microsoft/qsharp/pull/1700
* Fix type hints in python wrapper for noisy simulator. by orpuente-MS in https://github.com/microsoft/qsharp/pull/1857
* Add samples of testing Q code with classical return values by tcNickolas in https://github.com/microsoft/qsharp/pull/1858
* Add edit/run for kata examples - issue 591 by ggridin in https://github.com/microsoft/qsharp/pull/1829
* generate auto imports for core callables by sezna in https://github.com/microsoft/qsharp/pull/1861
* VSCode shows documentation by package by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1740
* Skip errors on files with `pr` URI scheme by swernli in https://github.com/microsoft/qsharp/pull/1867
* Katas UI review - Multiqubit gates by SoniaLopezBravo in https://github.com/microsoft/qsharp/pull/1845
* Bump version to 1.8 by billti in https://github.com/microsoft/qsharp/pull/1868


**Full Changelog**: https://github.com/microsoft/qsharp/compare/v1.7.0...v1.8.0

Page 1 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.