Граф коммитов

594 Коммитов

Автор SHA1 Сообщение Дата
Ricardo Espinoza d6d10353c8
Updating QDK version to 0.25.222597 (#1067) 2022-07-28 14:59:59 -07:00
microsoft-github-policy-service[bot] 71c0edf7a0
Adding Microsoft SECURITY.MD (#1017) 2022-07-26 21:04:49 +00:00
DmitryVasilevsky 84f81d6f72
Fixing deserialization security issue (non-issue) (#1059)
Fixing deserialiation security issue (non-issue)

Co-authored-by: Dmitry Vasilevsky <dmitryv@microsoft.com>
2022-07-19 10:12:36 -07:00
César Zaragoza Cortés 41805fa43c
Update to credential factory (#1062)
Update to credential factory.
2022-07-18 11:49:33 -07:00
Ricardo Espinoza bd22f3ea09
Disable use of cargo2junit because bug rust/99261 (#1061) 2022-07-15 17:06:52 -07:00
Mathias Soeken dd6e9fe4d9
Ensure capacity when multiple qubits are allocated (#1056)
Ensure capacity when multiple qubits are allocated.
2022-07-13 08:32:52 -07:00
Stefan J. Wernli 37e24d1e61
Add Sparse Sim to manifest, link against Spectre libs (#1054)
* Add Sparse Simulator to manifest

* Pull common cmake utils into library

* Fix linker flag
2022-07-09 02:55:43 +00:00
Angela Burton d192c291f7
CodeQL cpp/infiniteloop fix (#1048)
* resolve CodeQL cpp/infiniteloop alerts

* comparison fixes

* small fix

Co-authored-by: Ricardo Espinoza <ricardoe@microsoft.com>
2022-07-08 22:02:43 +00:00
Stefan J. Wernli ebbb2dbfc8
Link Spectre mitigated runtime on Full State Sim (#1053) 2022-07-08 07:03:30 -07:00
Stefan J. Wernli 300db86ba9
Fix BinSkim issues for native simulator (#1052)
This updates the native simulator to participate in BinSkim checks by ensuring that it produces symbols even when built in release mode. Any further BinSkim fixes will be added if necessary.
2022-07-06 10:35:44 -07:00
Angela Burton 8a8d129528
Use javascript strict mode to resolve CodeQL alert (#1051) 2022-07-02 01:33:10 +00:00
Stefan J. Wernli 352aba026c
Update codeowners (#1047)
* Update codeowners

Adding a few more owners for folders in runtime.

* Update .github/CODEOWNERS

Co-authored-by: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com>

* Update .github/CODEOWNERS

Co-authored-by: César Zaragoza Cortés <cesarzc@microsoft.com>

* Adding /src/Azure/

Co-authored-by: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com>
Co-authored-by: César Zaragoza Cortés <cesarzc@microsoft.com>
2022-06-28 22:10:18 +00:00
Bettina Heim 8abe490606
Updating packages to the latest release build (#1045) 2022-06-24 08:26:37 -07:00
Bettina Heim 87576b1f1e
Adjustments to enable QIR targets (#1019) 2022-06-23 07:59:02 -07:00
Stefan J. Wernli 68b2e47a41
Use Reset in Type1 Measure (#1044) 2022-06-22 21:09:09 -07:00
Robin Kuzmin 579b660b0a
Added @kuzminrobin's code ownership. (#1043) 2022-06-21 14:18:06 -07:00
DmitryVasilevsky 66d6b63d28
DmitryVasilevsky ownership (#1042)
* DmitryVasilevsky ownership

Co-authored-by: Dmitry Vasilevsky <dmitryv@microsoft.com>
2022-06-17 23:35:56 -07:00
Stefan J. Wernli c037629fe2
Fix SpreadZ decomposition utility (#1036)
This fixes the operation of `SpreadZ` when running on lists of more than 3 qubits. It adds tests that operate on lists of 1 to 4 qubits.

Fixes #1021 Bug in the internal `SpreadZ` operation (used in `Exp` decomposition)
2022-06-14 09:51:42 -07:00
Andres Paz e58a90cb50
Removing doc generation from tests (#1034) 2022-06-07 19:04:09 +00:00
Stefan J. Wernli d6f1adbbec
Fixing mistakenly public Target package operation (#1033)
The `ApplyUncontrolledSWAP` operation was mistakenly left public instead of being marked as internal. This should not be part of the public API surface and callers should instead use `SWAP` directly.

Fixes Cannot find ApplyUncontrolledSWAP in original package #1029
2022-06-07 09:24:32 -07:00
Cassandra Granade 592a63d311
Support for continuous-angle rotations in Rust and C# layers of open systems simulator. (#1009)
* Began adding LU decomposition support.

* Improve error handling structure.

* Code quality improvements.

* Added more docs, ported feature docs to document-features.

* Reformat Cargo.toml.

* Fix a few warnings and add new macro to simplify tests.

* More test cases for inv<c64>.

* Add microbenchmark for inv.

* Added matrix inverses.

* Fix missing link.

* Start adding expm from Padé and explicit diagonalization.

* Address feedback.

* Addressing feedback.

* Work towards propagating rx through qdk_sim_rs and C# runtime.

* Modified noise model for tests.

* Addressing feedback and reducing warnings.

* Propagate Generator and GeneratorCoset through C#.

* Add generator to noise model serialization tests.

* Add write support for Generator.

* Trivial commit to invalidate builds.

* Fix submodule issue.

* Propagate ry, rz as well.

* Update src/Simulation/qdk_sim_rs/src/math/sp_func.rs

Co-authored-by: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com>

* Fix build issues.

* Improve null checks.

* Fix Rust-side serialization test.

* Improve JsonException throws.

* More verbosity in tests.

* Fix test issue, add additional test.

* Slight code cleanups.

* More code cleanup.

* Fixed false positive in tests.

* Restore CI build.

* Added missing fields to noise model serialization.

* Fix warnings and clippies.

* Fixed generator definitions.

* Fixed noise model literal in unit tests.

* Propagate Exp through decompositions.

* Use singly controlled decompositions.

* Resolved minor todos.

* First implementation of super(density) apply.

* Demote pub(crate) fns to private.

* Simplify match arm.

* Update comment.

* Progress on fixing and expanding eig / expm unit tests.

* More unit test fixes.

* Fix clippies.

* Update ideal noise model tests.

* Fixed broken tests.

* Minor code cleanups.

* Minor code cleanup.

* Enable Rz test on open systems simulator.

* Add missing intrinsic overrides.

* Update cargo benchmarks.

* Minor code cleanup.

* Minor docs improvements.

* Resolving TODOs and cleaning up code.

* Try to catch panics in C API.

* Add more error messages to extend_two_to_n.

* Enable rust backtraces in testing.

* Add temporary debug statement to Rz.

* Expand C API tests.

* Propagate backtraces through to C# callers.

* Allow tracing C API calls with compile time feature.

* Fix bugs in native interface.

* Disable tracing C API.

* Fix Cargo.toml.

* Fix C# error in native interface.

* Fix rustdoc issues.

* Update src/Simulation/Simulators.Tests/OpenSystemsSimulatorTests/NativeInterfaceTests.cs

Co-authored-by: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com>

* Update src/Simulation/Simulators/OpenSystemsSimulator/DataModel/ArrayConverter.cs

Co-authored-by: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com>

* Addressing feedback.

* Invalidating builds.

* Fix issue with parameter rename.

* Trivial change to invalidate builds.

* Trivial change to invalidate builds.

* Update src/Simulation/Simulators/OpenSystemsSimulator/DataModel/State.cs

Co-authored-by: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com>

* Address feedback.

* Fix typo.

* Fix a couple typos.

* Added better error messages.

* Removed a source of panic.

* Increase test coverage.

* Remove experimental from DLL and namespace names.

* Reduced panic.

* Copy native DLLs with new name.

* Remove one more instanceo f M.Q.Experimental namespace.

* Fix accidental inclusion of build artifact.

* Use M.Q.Simulation.OpenSystems.DataModel namespace.

* Minor change to invalidate builds.

* Trivial change to invalidate builds.

* Remove a few warnings.

* Spell check to invalidate builds.

* Fix minor typo.

* Remove warning from Utils.

* Revert "Remove warning from Utils."

This reverts commit 9aa29b2527.

* Update global.json.

* Update QDK version elsewhere as well.

* Trivial change to invalidate builds.

* Trivial change to invalidate build.

* Trivial change to invalidate build.

* Fix error introduced by refactoring code action.

* Move generator into DataModel.

* Trivial change to invalidate builds.

* Minor fix to tests.

* Trivial change to invalidate build.

* Trivial change to invalidate build.

* Trivial change to invalidate build.

* Trivial change to invalidate build.

Co-authored-by: Robin Kuzmin <9372582+kuzminrobin@users.noreply.github.com>
2022-06-04 14:02:12 -07:00
Sarah Marshall 1761b37939
Update RequiresCapability attribute (#1030) 2022-06-03 20:48:55 -07:00
Robin Kuzmin e3e54f3762
Fixed Parity() in C# RT. (#1027) 2022-05-27 16:03:53 -07:00
Robin Kuzmin 77edcf31dc
Updated the ReadMe for VS2022 spectre-mitigated libs and versions of other build tools (#1025)
* Changed the instructions to install the spectre mitigated libs for VS2022.
* Prereqs version change.
Co-authored-by: César Zaragoza Cortés <cesarzc@microsoft.com>
2022-05-26 10:48:21 -07:00
Robin Kuzmin 54da60a481
Updated to the latest QDK. (#1024) 2022-05-25 16:42:38 -07:00
DmitryVasilevsky c050fa593d
ResourceEstimator can now use QubitManagerWithRestrictedReuse (#1011)
* ResourceEstimator can now use QubitManagerWithRestrictedReuse

* Added tests, fixed statistics

Co-authored-by: Dmitry Vasilevsky <dmitryv@microsoft.com>
2022-05-24 10:18:56 -07:00
Angela Burton 70c881d8b9
Block set-env.ps1 from sending to output stream (#1020)
* Update manifest.ps1

* Remove output

* Capture output from set-env

* Reset set-env

* Send set-env output to Out-Null

* Remove debugging statement
2022-05-19 17:13:31 -07:00
Stefan J. Wernli 2b82379d28
Update decompositions for latest compiler (#1013)
* Update decompositions for latest compiler

This change updates the decompositions for the latest compiler features, allowing for iteration through ranges, allowing extension to arbitrary controls.

* Add comments, optimize qubit use
2022-05-18 08:40:28 -07:00
Robin Kuzmin 5572fc1f21
Updated the QDK version. (#1016) 2022-05-17 14:00:34 -07:00
Robin Kuzmin 022b003cbc
Repeated PR: Added target Capability to Entry Point Driver. (#1015)
* Added target capability to entry point driver.
* Adding Target Capability to C# client.
Force-merging since the overall qdk.release succeeded.
2022-05-16 10:38:43 -07:00
Robin Kuzmin 8cfdafd84f
Revert "Added target Capability to Entry Point Driver. (#1002)" (#1014)
This reverts commit 4424d27f59.
2022-05-15 17:53:50 -07:00
Robin Kuzmin 4424d27f59
Added target Capability to Entry Point Driver. (#1002)
* Added target capability to entry point driver and C# client.
2022-05-15 16:12:42 -07:00
Stefan J. Wernli 5af398677c
Updating to release QDK version (#1007)
Now that the fix from https://github.com/microsoft/qsharp-compiler/pull/1411 has made it into the release, the QDK version can be updated to the April release instead of a beta version.
2022-05-15 17:19:54 +00:00
César Zaragoza Cortés 778f255898
Add --submit-config-file option to standalone executable driver (#1001)
Co-authored-by: Robin Kuzmin
2022-05-06 12:35:22 -07:00
Robin Kuzmin 3983118549
Uncommented a sparse simulator test. (#1010) 2022-05-04 05:06:54 +00:00
Robin Kuzmin 20d38f8335
Fixed the sanitized pipeline. (#1006) 2022-05-03 18:34:37 -07:00
Stefan J. Wernli 498b6e7ba0
Add Type4 target package, update `Measure` decomp (#997)
* Add Type4 target package, update `Measure` decomp

This change adds a Type4 package that avoids qubit reuse, and updates the Type2 package to use similar patterns. It adds tests, packaging and publishing for Type4.

In addition, this updates the decomposition of `Measure` in terms of single qubit Pauli-Z measurement to be limited to 8 qubits, updating all the target packages in the process.

* Use MZ pattern in Type2

* Remove unused M

* Updates for PR feedback
2022-04-26 22:47:06 +00:00
Angela Burton c3b7c3a858
Add DevSkim scanning (#996)
* Add DevSkim scanning

* Resolve alert

* Resolve alert
2022-04-26 12:05:52 -07:00
Stefan J. Wernli 9ef11ccbd2
Refactoring decompositions for hardware patterns (#992)
* Refactoring decompositions for hardware patterns

This change refactors the decompositions to avoid specific patterns. Namely recursion, array concatenation and slicing, and complex mathematical operations. It uses the new decomposition tests to validate the refactor across controlled and adjoint specializations with up to 8 controls. This should make the decompositions more compatible with future hardware targeting transformations.

Note that this updatest to a beta version of the QDK to pick up a compiler fix that is required to compile the decompositions.

* Update formatting, use loop for tests
2022-04-22 04:07:44 +00:00
Stefan J. Wernli dad65499fb
Suppress docs generation for test project (#995) 2022-04-21 03:40:45 +00:00
Cassandra Granade 5b05c6e393
Exclude Cargo.toml.orig from crate submission (#994) 2022-04-20 21:04:33 +00:00
IsraelMiles 48f1499f36
Add gh-sync workflow for issue synchronization (#982)
* add gh-sync workflow for issue synchronization

* Fix race condition
2022-04-19 11:35:28 -07:00
Robin Kuzmin 2976a173e3
Added to QIR RT the QIR output handling. (#991)
* Added tests.
* Refactored __quantum__rt__message().
2022-04-15 12:45:44 -07:00
Sarah Marshall f789b023d9
Add tests for evaluation of repeated value in sized array expressions (#976) 2022-04-14 21:21:34 +00:00
Stefan J. Wernli 8d305b9345
Add explicit decomposition testing infrastructure (#987)
This change adds an explicit decomposition test infrastructure based off of `AssertOperationsEqualReferenced` and wrappers around the native simulator intrinsics as references. This allows for verification tests of decompositions against the simulator written directly in Q#.
2022-04-13 15:31:06 -07:00
Robin Kuzmin ad38c5ed4f
Removed the SAL annotations. (#989) 2022-04-12 19:38:40 +00:00
Angela Burton 07fb90aac0
Fix for CodeQL comparison alerts (#988)
* fix for codeql alerts

* more codql fixes

* codeql fixes

* fix
2022-04-12 10:05:36 -07:00
Ricardo Espinoza 8fb56fc196
Build 0.24.201332. (#978) 2022-03-31 19:34:02 +00:00
Stefan J. Wernli 499c068d3a
Fix `Exp` decomposition to Ising gates (#971)
* Fix Type2 Exp decomposition

Corrects the angle convention used when calling the Ising gates as part of the `Exp` decomposition.

Fixes Decomposition of `Exp` operation uses incorrect angle convention on IonQ targets #967

* Add decomposition Exp test

* Include Exp test in target package tests

* Add comment to new test

* Update test to check sign consistency

Co-authored-by: Cassandra Granade <chgranad@microsoft.com>
2022-03-23 08:45:04 -07:00
Robin Kuzmin 0eaf0c176e
Minor improvement for task #969. (#970)
* Minor improvement for bug #969.
* Adapted the sanitized pipeline for .NET 6.
2022-03-20 16:30:40 -07:00