Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Conversation

@swernli
Copy link
Collaborator

@swernli swernli commented Aug 18, 2020

This PR just merges master into the feature branch to bring it up to date for further development.

bamarsha and others added 26 commits July 6, 2020 10:56
* Use a default target when submitting to Azure Quantum

* Update doc comments

* Move settings.Target null check to switch case

Co-authored-by: bettinaheim <34236215+bettinaheim@users.noreply.github.com>
* Implemented friendly uri option in azure quantum.

* Fixed tests.

* Fixed tests after nerge conflict.

Co-authored-by: bettinaheim <34236215+bettinaheim@users.noreply.github.com>
Added execution test projects for various simulators.
Added tests to check measurements on qubits work.
Added tests for conditions on measurement results.
* Extends #257 (fixing #256) to QuantumProcessorDispatcher sim as well

* Pulled SampleDistribution method out to shared utils

Co-authored-by: Yury Sudzilouski <v-yusudz@microsoft.com>
Changed the isGeneric method of the C# generation code to count the length of the type parameter list for a callable.
…Get packages. (#311)

This change includes the following:

- NuGet version is updated to 5.6 and the .Net Core SDK to 3.1.300.

- The deprecated NuGet property IconUrl is replaced by an embedded icon in the packages themselves.

- The asset used as an icon for the packages is a newly created graphic.
* Handle operations as arguments in GetNonQubitArgumentsAsString

* Handle null values for IApplyData types
* EncourageReuse option in QubitManager.
Currently Qubit Manager tries to reuse released qubits as soon as possible and prefers it to allocating fresh unused ones. This is good for some scenarios, however, in other scenarios it may be preferrable to first allocate fresh unused qubits, and only then try to reuse released ones (oldest released first). Both behaviors are now possible via a backwards-compatible optional parameter in QubitManager constructor.

* Review feedback

* .
* Fix asserts in QubitManager

* Remove asserts from QubitManager
* Protect simulator accessors via shared lock

This fixes an intermittent crash by putting shared locks around the access of the `psis` vector, where create and destroy use an exclusive lock of the same mutex

Fixes #335

* Fix factory_test.hpp

* Make sure returned ptr is the same one
* Fixing circuit in test_gates to be deterministic

`test_gates` in capi_test.cpp had a low but non-zero chance of measuring One instead of Zero, resulting in a test crash due to assertion failure. This rearranges the instructions to ensure the test correctly unprepares the state so that measurement is as deterministic as possible.

Fixes #262

* use a more interesting circuit
* Replaced the nullable member access with regular member access for C# generated Slice.
Fixes Code generation failure when mapping Q# namespaces to C# namespaces  #46
bamarsha and others added 3 commits August 18, 2020 10:05
* Initial Q# API for new Random namespace

* Consolidate RNG logic in SimulatorBase.

* Consolidate RNG logic in Toffoli simulator as well.

* Fix build errors.

* Fix typo in previous commit.

* Adapt namespaces in test project.

* One more namespace fix.

* Started some API documentation comments.

* Add more API docs and tests.

* Fix open statements.

* Fix SampleNBits.

* Update src/Simulation/Common/SimulatorBase.cs

Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>

* Update src/Simulation/Common/SimulatorBase.cs

Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>

* Update src/Simulation/QsharpCore/Random/Convienence.qs

Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>

* Update src/Simulation/QsharpCore/Random/Types.qs

Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>

* API docs, review feedback, more tests.

* fixed typo

* Added missing open.

* Add another missing open.

* Discrete → continuous

* Split out intrinsic tests to avoid duplicated types.

* Fix off by one error in unit tests.

* Added a little bit more testing.

* A bit more testing.

* Avoid depending on Delay.

* Break down tests a bit more.

* Fix categorical tests.

* Update src/Simulation/Simulators.Tests/TestProjects/IntrinsicTests/IntrinsicTests.csproj

Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>

* Update src/Simulation/Simulators.Tests/TestProjects/IntrinsicTests/Random/Tests.qs

Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>

* Update src/Simulation/Simulators.Tests/TestProjects/IntrinsicTests/Random/Tests.qs

Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>

Co-authored-by: Mathias Soeken <mathias.soeken@outlook.com>
@swernli swernli force-pushed the swernli/decomp-merge-master branch from 16c3126 to 80a9c6d Compare August 19, 2020 06:21
@swernli swernli merged commit 7a37c05 into feature/decomp Aug 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.