Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
21f265d
Create new project for entry point driver
Apr 27, 2020
f093139
Fix entry point option values
Apr 28, 2020
f5ab13e
Add missing dashes to simulator options
Apr 28, 2020
bf6a06e
Update root namespace
Apr 28, 2020
ce8c97f
Add driver to nuget package
Apr 28, 2020
117e7f3
Manually add EntryPointDriver's dependencies to package
Apr 28, 2020
59528b6
Add doc comments to Validation
Apr 28, 2020
f953471
Rewrite FindNuspecReferences.ps1
Apr 28, 2020
a19d9f4
Type parameterize IEntryPoint
Apr 28, 2020
7dd460f
Add reference to EntryPointDriver from tests
Apr 29, 2020
ae6022d
Remove entry point driver resources
Apr 29, 2020
aba1fb6
Rename EntryPointDriver assembly
Apr 29, 2020
8c20c09
Remove unneeded generated code
Apr 29, 2020
8184424
Add documentation to IEntryPoint
Apr 29, 2020
03919a5
Update Driver documentation
Apr 29, 2020
14a9191
Enable C# nullable feature
Apr 29, 2020
2fad70d
Avoid multiple enumeration
Apr 29, 2020
7ac1677
Remove unnecessary identifier quotations
Apr 29, 2020
d00152e
Remove "Get" prefix
Apr 29, 2020
5b6f373
Update variable name/comment
Apr 29, 2020
a109055
Make Validation and value parsers private/internal
Apr 30, 2020
d55d7d6
Support IQArray types directly
Apr 30, 2020
7089096
Remove single-class namespace
Apr 30, 2020
0d26108
Use type parameter in CreateOption
Apr 30, 2020
e4c9b37
Combine some excessively separated functions
Apr 30, 2020
350b238
Use WithSuggestions instead of AddSuggestions
Apr 30, 2020
07ecbaf
Add entry point argument tuple to interface
Apr 30, 2020
358bb15
Fix nested tuples in arguments
Apr 30, 2020
96a4999
Add entry point info to IEntryPoint
Apr 30, 2020
c4b4fcd
Add submit command
Apr 30, 2020
4384813
Fix typo
bamarsha Apr 30, 2020
744c83b
Use only one line for shadowing warning
May 1, 2020
f804ad9
Merge pull request #180 from microsoft/samarsha/standalone-project
bamarsha May 1, 2020
7fa0cd0
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-submit
bamarsha May 1, 2020
1b53a81
Removed type parameters from IQuantumMachine interface. (#185)
cesarzc May 4, 2020
7d4c317
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-submit
bamarsha May 4, 2020
c7bee97
Use the new IQuantumMachine interface
May 4, 2020
687565d
Add TODO for histogram output
May 4, 2020
f83b1a7
Merge pull request #184 from microsoft/samarsha/azure-submit
bamarsha May 5, 2020
0e12f1d
Add command-line options for Azure submission
May 5, 2020
5ee822d
Small code style fixes
May 5, 2020
f4335c4
Use real provider for Azure submission
May 7, 2020
00aa3a0
Remove TODO from the wrong place
May 7, 2020
f8f203e
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-submit
bamarsha May 7, 2020
102c98c
Use SimulatorMachine based on target name
May 7, 2020
515f969
Merge remote-tracking branch 'origin/samarsha/azure-submit' into sama…
May 7, 2020
89a6932
Add option for number of shots
May 7, 2020
6a780f2
Validate that shots is positive
May 7, 2020
290469c
Use DefaultIfShadowed for Azure settings
May 7, 2020
7702e3a
Simplify adding/defaulting options
May 7, 2020
3a75b78
Make SimulatorOption non-static
May 7, 2020
77e177a
Add AddOptionsIfAvailable method
May 7, 2020
da6efc3
Fix option aliases missing dashes
May 7, 2020
da767f8
Disable command if required options are shadowed
May 7, 2020
c363cc3
Add copyright headers
May 7, 2020
4bda02b
Add histogram option
May 7, 2020
28ba977
Make histogram pretty
May 8, 2020
64188d8
Fix shadowing
May 8, 2020
5c411f7
Update histogram divider dash
May 8, 2020
f5ae08e
Preserve required state of options
May 8, 2020
ed35ff4
Simulator option is not required
May 8, 2020
c4d0bb2
Use SubmitAsync instead of ExecuteAsync
May 8, 2020
4aa57a4
Add access token option
May 8, 2020
7e7007c
Rename ToWorkspace to CreateWorkspace
May 8, 2020
15f5f67
Remove "Azure" from option descriptions
May 8, 2020
a67da46
Print job ID instead of URI for now
May 9, 2020
6568a9e
Add --base-uri option
May 11, 2020
f72feae
Rename --access to --aad-token
May 11, 2020
3b105b0
Rename --id-only to --output
May 11, 2020
ec1b935
Add OptionInfo class
May 11, 2020
9bf31b6
Update --shots validator message
May 11, 2020
44383c3
Update --base-uri description
May 11, 2020
4c2f68f
Add TODO for "submit" tests
May 11, 2020
6cf2873
Replace NotImplementedExceptions with NotSupportedExceptions
May 11, 2020
fbcdf60
More specific TODO for number of shots
May 11, 2020
eca8091
Don't include default value for required options
May 12, 2020
be0e5d7
Hide "submit" command
May 13, 2020
3c66e56
Update help test
May 13, 2020
82be8ef
Merge branch 'master' into samarsha/update-azure-quantum-preview
May 13, 2020
1b01478
Merge pull request #201 from microsoft/samarsha/update-azure-quantum-…
bamarsha May 13, 2020
3f592fc
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-submit
bamarsha May 13, 2020
40128cd
Add manifest with qsharp-runtime assemblies requiring signing (#200) …
May 14, 2020
e076855
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-submit
bamarsha May 14, 2020
256ebbd
Update TODO comments
May 14, 2020
fa41af3
Add test for submit help text
May 14, 2020
6a1e69a
Add more tests for submit command
May 14, 2020
3077584
Add Microsoft.Azure.Quantum.Client sources and QuantumMachineFactory …
May 15, 2020
3cd4c43
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-submit
bamarsha May 15, 2020
3845b95
Add reference to Microsoft.Azure.Quantum.Client
May 15, 2020
74d1574
Merge pull request #194 from microsoft/samarsha/azure-submit
bamarsha May 16, 2020
0ac3ef4
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-subm…
bamarsha May 16, 2020
7212a07
Re-add missing summary start tag
bamarsha May 16, 2020
f9e5886
Add Honeywell to QuantumMachineFactory
May 19, 2020
2a32038
Merge pull request #207 from microsoft/samarsha/honeywell-factory
bamarsha May 19, 2020
cdc4b79
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-subm…
bamarsha May 19, 2020
1b70dc2
Allow reflection to find type in loaded assembly (#205)
May 20, 2020
ff3d3e3
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-subm…
bamarsha May 20, 2020
588a96e
Use package references to runtime components in EntryPointDriver
May 20, 2020
ce60cef
Revert package references to project references
May 20, 2020
f72ff5d
Merge pull request #209 from microsoft/samarsha/driver-package-refs
bamarsha May 20, 2020
f290392
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-subm…
May 20, 2020
3116491
Add Microsoft.Azure.Quantum.Client as NuGet dependency
May 26, 2020
992011a
Merge pull request #210 from microsoft/samarsha/azure-client-dep
bamarsha May 26, 2020
4cff207
Merge branch 'master' into samarsha/aqp←master
May 26, 2020
6fb40d5
Add stubs for new methods in NothingMachine
May 26, 2020
67811b7
Merge pull request #213 from microsoft/samarsha/aqp←master
bamarsha May 26, 2020
14717f6
Add --dry-run option
May 26, 2020
aa58f00
Set shots in submission context
May 27, 2020
06afb5b
Add blank line before validation message
May 27, 2020
f7e97f9
Created AzzureQuantumException. (#216)
cesarzc May 27, 2020
2c6c102
Merge latest master to have access to QuantumProcessorTranslationExce…
cesarzc May 27, 2020
f64aeda
Merge branch 'feature/azure-quantum-preview' into samarsha/dry-run+shots
bamarsha May 27, 2020
7406b18
Show warning message for OutputFormat.FriendlyUri
May 27, 2020
7539b2b
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-subm…
bamarsha May 27, 2020
2a4b75f
Merge pull request #214 from microsoft/samarsha/dry-run+shots
bamarsha May 27, 2020
9cdfa4a
Merge branch 'feature/azure-quantum-preview' into samarsha/azure-subm…
bamarsha May 27, 2020
068944b
Fix tests
May 27, 2020
82e7cbb
Rename test project
May 27, 2020
ca4ef26
Add test for unknown target
May 27, 2020
0b42561
Add test project to test.ps1
May 27, 2020
949003f
Merge pull request #204 from microsoft/samarsha/azure-submit-tests
bamarsha May 27, 2020
642409a
Merge branch 'master' into samarsha/aqp←master
May 27, 2020
e8332ac
Handle Azure quantum known exceptions (#218)
cesarzc May 27, 2020
200f95c
Merge branch 'feature/azure-quantum-preview' into samarsha/aqp←master
bamarsha May 27, 2020
6193627
Merge pull request #220 from microsoft/samarsha/aqp←master
bamarsha May 28, 2020
14c9f7c
Update copyright headers in Azure Quantum client
May 28, 2020
9f94462
Merge pull request #221 from microsoft/samarsha/copyright-headers
bamarsha May 28, 2020
8b7c5df
Remove TODO for audience URI
May 28, 2020
7fe800a
Merge pull request #222 from microsoft/samarsha/audience-todo
bamarsha May 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Welcome to the Microsoft Quantum Development Kit!
This repository contains the runtime components for the [Quantum Development Kit](https://docs.microsoft.com/quantum/).
It consists of the libraries and packages needed to create and simulate quantum applications using Q#.

- **[Azure/](./src/Azure/)**: Source for client package to create and manage jobs in Azure Quantum.
- **[Simulation/](./src/Simulation/)**: Source for Q# simulation. Includes code generation, full-state and other simulators.
- **[xUnit/](./src/Xunit/)**: Source for the xUnit's Q# test-case discoverer.

Expand Down
81 changes: 81 additions & 0 deletions Simulation.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.28809.33
MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{99E234BC-997E-4E63-9F5C-3C3977543404}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Azure", "Azure", "{A1E878CB-ADF1-457A-9223-06F96ED8F7A6}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Quantum.Client", "src\Azure\Azure.Quantum.Client\Microsoft.Azure.Quantum.Client.csproj", "{DF654202-0008-4CDE-B35E-018CEFD0FC68}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Microsoft.Azure.Quantum.Client.Test", "src\Azure\Azure.Quantum.Client.Test\Microsoft.Azure.Quantum.Client.Test.csproj", "{1467128C-90E4-4723-B5C7-9469B83F54A6}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Quantum.Runtime.Core", "src\Simulation\Core\Microsoft.Quantum.Runtime.Core.csproj", "{E9123D45-C1B0-4462-8810-D26ED6D31944}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Quantum.Simulation.QCTraceSimulatorRuntime", "src\Simulation\QCTraceSimulator\Microsoft.Quantum.Simulation.QCTraceSimulatorRuntime.csproj", "{058CB08D-BFA7-41E2-BE6B-0A0A72054F91}"
Expand Down Expand Up @@ -39,6 +47,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TestProjects", "TestProject
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "QsharpExe", "src\Simulation\Simulators.Tests\TestProjects\QsharpExe\QsharpExe.csproj", "{2F5796A7-4AF8-4B78-928A-0A3A80752F9D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EntryPointDriver", "src\Simulation\EntryPointDriver\EntryPointDriver.csproj", "{944FE7EF-9220-4CC6-BB20-CE517195B922}"
EndProject
Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "Tests.EntryPointDriver", "src\Simulation\EntryPointDriver.Tests\Tests.EntryPointDriver.fsproj", "{E2F30496-19D8-46A8-9BC0-26936FFE70D2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -51,6 +63,38 @@ Global
RelWithDebInfo|x64 = RelWithDebInfo|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.Debug|x64.ActiveCfg = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.Debug|x64.Build.0 = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.MinSizeRel|x64.Build.0 = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.Release|Any CPU.Build.0 = Release|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.Release|x64.ActiveCfg = Release|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.Release|x64.Build.0 = Release|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
{DF654202-0008-4CDE-B35E-018CEFD0FC68}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.Debug|x64.ActiveCfg = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.Debug|x64.Build.0 = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.MinSizeRel|x64.Build.0 = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.Release|Any CPU.Build.0 = Release|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.Release|x64.ActiveCfg = Release|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.Release|x64.Build.0 = Release|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
{1467128C-90E4-4723-B5C7-9469B83F54A6}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
{E9123D45-C1B0-4462-8810-D26ED6D31944}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E9123D45-C1B0-4462-8810-D26ED6D31944}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E9123D45-C1B0-4462-8810-D26ED6D31944}.Debug|x64.ActiveCfg = Debug|Any CPU
Expand Down Expand Up @@ -259,6 +303,38 @@ Global
{2F5796A7-4AF8-4B78-928A-0A3A80752F9D}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
{2F5796A7-4AF8-4B78-928A-0A3A80752F9D}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
{2F5796A7-4AF8-4B78-928A-0A3A80752F9D}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.Debug|Any CPU.Build.0 = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.Debug|x64.ActiveCfg = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.Debug|x64.Build.0 = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.MinSizeRel|x64.Build.0 = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.Release|Any CPU.ActiveCfg = Release|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.Release|Any CPU.Build.0 = Release|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.Release|x64.ActiveCfg = Release|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.Release|x64.Build.0 = Release|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
{944FE7EF-9220-4CC6-BB20-CE517195B922}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.Debug|x64.ActiveCfg = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.Debug|x64.Build.0 = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.MinSizeRel|x64.Build.0 = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.Release|Any CPU.Build.0 = Release|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.Release|x64.ActiveCfg = Release|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.Release|x64.Build.0 = Release|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.RelWithDebInfo|Any CPU.ActiveCfg = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
{E2F30496-19D8-46A8-9BC0-26936FFE70D2}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -278,6 +354,11 @@ Global
{B96E97F4-2DC8-45AC-ADF5-861D0D3073FC} = {A567C185-A429-418B-AFDE-6F1785BA4A77}
{09C842CB-930C-4C7D-AD5F-E30DE4A55820} = {34D419E9-CCF1-4E48-9FA4-3AD4B86BEEB4}
{2F5796A7-4AF8-4B78-928A-0A3A80752F9D} = {09C842CB-930C-4C7D-AD5F-E30DE4A55820}
{944FE7EF-9220-4CC6-BB20-CE517195B922} = {A567C185-A429-418B-AFDE-6F1785BA4A77}
{A1E878CB-ADF1-457A-9223-06F96ED8F7A6} = {99E234BC-997E-4E63-9F5C-3C3977543404}
{DF654202-0008-4CDE-B35E-018CEFD0FC68} = {A1E878CB-ADF1-457A-9223-06F96ED8F7A6}
{1467128C-90E4-4723-B5C7-9469B83F54A6} = {A1E878CB-ADF1-457A-9223-06F96ED8F7A6}
{E2F30496-19D8-46A8-9BC0-26936FFE70D2} = {A567C185-A429-418B-AFDE-6F1785BA4A77}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {929C0464-86D8-4F70-8835-0A5EAF930821}
Expand Down
2 changes: 2 additions & 0 deletions build/manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

@{
Packages = @(
"Microsoft.Azure.Quantum.Client",
"Microsoft.Quantum.CsharpGeneration",
"Microsoft.Quantum.Development.Kit",
"Microsoft.Quantum.QSharp.Core",
Expand All @@ -13,6 +14,7 @@
"Microsoft.Quantum.Xunit"
);
Assemblies = @(
".\src\Azure\Azure.Quantum.Client\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Azure.Quantum.Client.dll",
".\src\simulation\CsharpGeneration\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Quantum.CsharpGeneration.dll",
".\src\simulation\CsharpGeneration.App\bin\$Env:BUILD_CONFIGURATION\netcoreapp3.1\Microsoft.Quantum.CsharpGeneration.App.dll",
".\src\simulation\CsharpGeneration.App\bin\$Env:BUILD_CONFIGURATION\netcoreapp3.1\Microsoft.Quantum.RoslynWrapper.dll",
Expand Down
1 change: 1 addition & 0 deletions build/pack.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ function Pack-Dotnet() {


Write-Host "##[info]Using nuget to create packages"
Pack-Dotnet '../src/Azure/Azure.Quantum.Client/Microsoft.Azure.Quantum.Client.csproj'
Pack-One '../src/Simulation/CsharpGeneration/Microsoft.Quantum.CsharpGeneration.fsproj' '-IncludeReferencedProjects'
Pack-Dotnet '../src/Simulation/Core/Microsoft.Quantum.Runtime.Core.csproj'
Pack-Dotnet '../src/Simulation/QsharpCore/Microsoft.Quantum.QSharp.Core.csproj'
Expand Down
2 changes: 2 additions & 0 deletions build/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ function Test-One {

Test-One '../src/Simulation/CsharpGeneration.Tests/Tests.CsharpGeneration.fsproj'

Test-One '../src/Simulation/EntryPointDriver.Tests/Tests.EntryPointDriver.fsproj'

Test-One '../src/Simulation/RoslynWrapper.Tests/Tests.RoslynWrapper.fsproj'

Test-One '../src/Simulation/QCTraceSimulator.Tests/Tests.Microsoft.Quantum.Simulation.QCTraceSimulatorRuntime.csproj'
Expand Down
33 changes: 33 additions & 0 deletions src/Azure/Azure.Quantum.Client.Test/Helpers/MockHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using Moq;
using Moq.Protected;

namespace Microsoft.Azure.Quantum.Test
{
public static class MockHelper
{
internal static HttpRequestMessage RequestMessage { get; private set; }

internal static HttpResponseMessage ResponseMessage { get; set; }

public static HttpClient GetHttpClientMock()
{
Mock<HttpMessageHandler> mock = new Mock<HttpMessageHandler>();

mock.Protected()
.Setup<Task<HttpResponseMessage>>("SendAsync", ItExpr.IsAny<HttpRequestMessage>(), ItExpr.IsAny<CancellationToken>())
.Returns((HttpRequestMessage request, CancellationToken token) =>
{
RequestMessage = request;
return Task.FromResult(ResponseMessage);
});

return new HttpClient(mock.Object);
}
}
}
14 changes: 14 additions & 0 deletions src/Azure/Azure.Quantum.Client.Test/Helpers/TestConstants.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

namespace Microsoft.Azure.Quantum.Test
{
public static class TestConstants
{
public const string SubscriptionId = "sub1";
public const string ResourceGroupName = "rg1";
public const string WorkspaceName = "ws1";
public const string ProviderId = "provider1";
public const string Endpoint = "https://test";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.0.0" />
<PackageReference Include="MSTest.TestFramework" Version="2.0.0" />
<PackageReference Include="Moq" Version="4.13.1" />
<PackageReference Include="coverlet.collector" Version="1.0.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<PropertyGroup>
<CodeAnalysisRuleSet>..\Common\StyleCop.ruleset</CodeAnalysisRuleSet>
<RootNamespace>Microsoft.Azure.Quantum.Test</RootNamespace>
</PropertyGroup>

<ItemGroup>
<AdditionalFiles Include="..\Common\stylecop.json" Link="Properties\stylecop.json" />
<Compile Include="..\Common\DelaySign.cs" Link="Properties\DelaySign.cs" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Azure.Quantum.Client\Microsoft.Azure.Quantum.Client.csproj" />
</ItemGroup>
</Project>
Loading