Qsharp

Latest version: v1.6.0

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

Scan your dependencies

Page 1 of 2

1.6.0

Welcome to the v1.6.0 release of the Azure Quantum Development Kit!

The big feature in this release is the ability to compile Q programs to QIR that require "Adaptive Profile" capabilities. This enables programs to take advantage of the latest capabilities of quantum hardware, such as the ability to perform mid-circuit measurement of qubits, branch based on the results, and perform some classical computations at runtime. For more details, see <https://aka.ms/qdk.qir>.

We've added or updated a number of samples that can leverage Adaptive Profile capabilities, such as the [Three Qubit Repetition Code](https://github.com/microsoft/qsharp/blob/main/samples/algorithms/ThreeQubitRepetitionCode.qs) and the [Iterative Phase Estimation notebook](https://github.com/microsoft/qsharp/blob/main/samples/notebooks/iterative_phase_estimation.ipynb). Please do try it out and give us your feedback!

As part of the above work, the previous code generation approach was replaced, even in the non-Adaptive (_"base profile"_) case. Please log an issue if you see any unexpected change in behavior.

Other notable new features include Q linting support in Jupyter Notebooks, CodeActions in VS Code to fix certain Q errors, Q library documentation inside VS Code, and more!

Impactful changes and fixes

* Add linting support to notebooks (Closes 1277) by orpuente-MS in https://github.com/microsoft/qsharp/pull/1313
* Use new QIR gen API for Base Profile by idavis in https://github.com/microsoft/qsharp/pull/1400
* Allow generating circuits for operations despite no entrypoint error by minestarks in https://github.com/microsoft/qsharp/pull/1432
* Fix lint message formatting by orpuente-MS in https://github.com/microsoft/qsharp/pull/1444
* Change the default level of the DivisionByZero lint to "error" by orpuente-MS in https://github.com/microsoft/qsharp/pull/1445
* Adding Adaptive RI profile by idavis in https://github.com/microsoft/qsharp/pull/1451
* Handle impossible factories in RE API by msoeken in https://github.com/microsoft/qsharp/pull/1463
* Fix global phase for `PauliI` rotation and `DumpRegister` by swernli in https://github.com/microsoft/qsharp/pull/1461
* Documentation in the VSCode - core, std, and current project by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1466
* Three qubit repetition code sample works in Adaptive Profile by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1534
* GHZ and CAT samples work in Adaptive and Base Profiles by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1532
* Add messages to samples in /samples/language by goshua13 in https://github.com/microsoft/qsharp/pull/1509
* Make `SpreadZ` utility iterative instead of recursive by swernli in https://github.com/microsoft/qsharp/pull/1545
* Support target name in Python, remove Adaptive warnings by swernli in https://github.com/microsoft/qsharp/pull/1549
* Avoid panic from `DumpRegister` in circuit display by swernli in https://github.com/microsoft/qsharp/pull/1554
* Respect configured target profile for histogram in VS Code by swernli in https://github.com/microsoft/qsharp/pull/1565
* Update to Rust 1.78 by orpuente-MS in https://github.com/microsoft/qsharp/pull/1570
* Respect target setting for "Estimate" command by swernli in https://github.com/microsoft/qsharp/pull/1576
* Add support for CodeActions in the Language Service by orpuente-MS in https://github.com/microsoft/qsharp/pull/1495
* Read correct field in QEC scheme by msoeken in https://github.com/microsoft/qsharp/pull/1602
* Fix panic when updating array with dynamic value by swernli in https://github.com/microsoft/qsharp/pull/1606
* Added dot product via iterative phase estimation sample by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1562
* Reset zoom level when circuit window is resized by minestarks in https://github.com/microsoft/qsharp/pull/1592
* Fix normalization math in `DumpRegister` by swernli in https://github.com/microsoft/qsharp/pull/1608
* Adaptive quantum computing notebook samples by cesarzc in https://github.com/microsoft/qsharp/pull/1614

New Contributors

* Piwakk made their first contribution in https://github.com/microsoft/qsharp/pull/1440
* goshua13 made their first contribution in https://github.com/microsoft/qsharp/pull/1447
* moumita-halder made their first contribution in https://github.com/microsoft/qsharp/pull/1489
* devikamehra made their first contribution in https://github.com/microsoft/qsharp/pull/1468
* viktorveis made their first contribution in https://github.com/microsoft/qsharp/pull/1568
* JPark1023 made their first contribution in https://github.com/microsoft/qsharp/pull/1518
* SoniaLopezBravo made their first contribution in https://github.com/microsoft/qsharp/pull/1512

**Full Changelog**: https://github.com/microsoft/qsharp/compare/v1.4.0...v1.6.0

1.4.0

Welcome to the v1.4.0 release of the Azure Quantum Development Kit. The main highlights of this release are:

- Circuit visualization by minestarks in 1247, 1267 1269, 1295, 1318, 1361, and more! See more details on this feature in the official docs, or in the [repository wiki](https://github.com/microsoft/qsharp/wiki/Circuit-Diagrams-from-Q%23-Code)
- Formatting improvements by ScottCarda-MS in 1289, 1303, 1310, 1329
- Update language service when manifest is saved by orpuente-MS in 1366

Other notable fixes and improvements include:

- Fix DumpMachine() output in VS Code debug console by minestarks in https://github.com/microsoft/qsharp/pull/1299
- Fix completion auto-open position in notebook cells by minestarks in https://github.com/microsoft/qsharp/pull/1398
- Update doc comments in std library by DmitryVasilevsky in https://github.com/microsoft/qsharp/pull/1401

And lots of Katas updates! Including:

* Add state flip task to Single-Qubit Gates kata by WWhitedogi in https://github.com/microsoft/qsharp/pull/1343
* Add tasks 1.8, 1.9, 1.10 to Superposition Kata by jkingdon-ms in https://github.com/microsoft/qsharp/pull/1346
* Add sign flip, basis change, amplitude change tasks to Single-Qubit Gates kata by WWhitedogi in https://github.com/microsoft/qsharp/pull/1352
* Add global phase -1, relative phase i, and complex relative phase tasks to Single-Qubit Gates kata by WWhitedogi in https://github.com/microsoft/qsharp/pull/1369
* Add tasks 1.11, 1.12 to Superposition Kata by jkingdon-ms in https://github.com/microsoft/qsharp/pull/1381
* Add task 2.1 to Superposition kata by tcNickolas in https://github.com/microsoft/qsharp/pull/1395
* Update READMEs to add details on building playground and katas by Manvi-Agrawal in https://github.com/microsoft/qsharp/pull/1402
* Add tasks on Bell states changes to Multi-Qubit States kata by WWhitedogi in https://github.com/microsoft/qsharp/pull/1385
* Add CZ section and CNOT and CZ tasks to Multi-Qubit Gates kata by WWhitedogi in https://github.com/microsoft/qsharp/pull/1389
* Adds task 1.13 to Superposition Kata by frtibble in https://github.com/microsoft/qsharp/pull/1382

**Full Changelog**: https://github.com/microsoft/qsharp/compare/v1.3.1...v1.4.0

1.3.1

Includes a fix for an issue rendering DumpMachine calls in VS Code.

See https://github.com/microsoft/qsharp/compare/v1.3.0...v1.3.1 for the change.

1.3.0

Welcome to the v1.3.0 release of the Azure Quantum Development Kit. The main highlights of this release are:

- Initial support for linting (1140)
- Document and selection formatting (1172 and 1275)
- Authenticate to Azure Quantum workspaces via a connection string (1238)
- Add a 'Create Q project' command (1286)
- Significant performance improvements from using mimalloc (1249)
- More significant performance improvements via CFG usage (1261)
- Add `Microsoft.Quantum.Measurement` to the prelude (1233)
- Changes to the data returned by `dump_machine` and `dump_operation` (1227)

And more! See <https://github.com/microsoft/qsharp/compare/v1.2.0...v1.3.0> for the full list of changes.

1.2.0

Welcome to the v1.2.0 release of the Azure Quantum Development Kit. The main highlights of this release are:

- Added the DumpRegister API (1173)
- Added code distance to Resource Estimation tooltips (1205)
- Use optimized AND for decomposition (1202)
- Remove the "Message:" prefix from Message output by colommar (1175)
- Generate Q API docs for [learn.microsoft.com](https://learn.microsoft.com/en-us/qsharp/api/qsharp-lang/) (#1150)
- Show codelens on entry point in VS Code to Run, Debug, Histogram, and Estimate (1142)
- Support generating QIR with custom intrinsics (1141)
- Fix hover info for lambdas passed to generic functions (1161)
- Fix panic on in-place update optimization (1149)
- Add boolean Xor API (1100)

And much more! See <https://github.com/microsoft/qsharp/compare/v1.1.3...v1.2.0> for the full change log.

1.1.3

Welcome to the v1.1.3 release of the Azure Quantum Development Kit. This release is largely a bug fixing release of v1.1. Some notable changes include:

* Use fixed seed for random circuit generation in resource estimation sample in https://github.com/microsoft/qsharp/pull/1097
* Consolidate samples and run notebooks in build in https://github.com/microsoft/qsharp/pull/1070
* Fix typos in Q standard lib documentation by filipw in https://github.com/microsoft/qsharp/pull/1101
* Session now exits when there is a runtime failure when running without debugging in https://github.com/microsoft/qsharp/pull/1103
* Pure state preparation added to unstable standard library in https://github.com/microsoft/qsharp/pull/1068
* Use relevant icon for locals completion by filipw in https://github.com/microsoft/qsharp/pull/1111
* Prefer open file contents to disk contents in https://github.com/microsoft/qsharp/pull/1110
* Fix BOM handling in Python in https://github.com/microsoft/qsharp/pull/1112
* Update spans used for some type mismatch errors in https://github.com/microsoft/qsharp/pull/1098
* Evaluator performance improvements in https://github.com/microsoft/qsharp/pull/1116
* Fix state ordering in Python in https://github.com/microsoft/qsharp/pull/1122
* Set notebook cell language back to Python if `%%qsharp` magic isn't there in https://github.com/microsoft/qsharp/pull/1118
* Clarify instructions on running the playground in https://github.com/microsoft/qsharp/pull/1134
* New factoring algorithm sample for resource estimation in https://github.com/microsoft/qsharp/pull/1058


**Full Changelog**: https://github.com/microsoft/qsharp/compare/v1.1.1...v1.1.3

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.