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

Commit 038ddfd

Browse files
anpazmartinquantum
authored andcommitted
Release/v0.3.1810 (#1)
* Release 0.3.1810 * Update Canon/src/AmplitudeAmplification/Utils.qs Co-Authored-By: anpaz-msft <[email protected]> * Update Canon/src/Combinators/RestrictToSubregister.qs Co-Authored-By: anpaz-msft <[email protected]> * Update Canon/src/AmplitudeAmplification/AmplitudeAmplification.qs Co-Authored-By: anpaz-msft <[email protected]> * Update Canon/src/Arithmetic/Arithmetic.qs Co-Authored-By: anpaz-msft <[email protected]>
1 parent e8743d6 commit 038ddfd

File tree

349 files changed

+17497
-23806
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

349 files changed

+17497
-23806
lines changed

.gitattributes

+52-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,55 @@
77
###############################################################################
88
# diff behavior for some non-binary formats
99
###############################################################################
10-
*.md diff=text
10+
#*.cs diff=csharp
11+
12+
###############################################################################
13+
# Set the merge driver for project and solution files
14+
#
15+
# Merging from the command prompt will add diff markers to the files if there
16+
# are conflicts (Merging from VS is not affected by the settings below, in VS
17+
# the diff markers are never inserted). Diff markers may cause the following
18+
# file extensions to fail to load in VS. An alternative would be to treat
19+
# these files as binary and thus will always conflict and require user
20+
# intervention with every merge. To do so, just uncomment the entries below
21+
###############################################################################
22+
#*.sln merge=binary
23+
#*.csproj merge=binary
24+
#*.vbproj merge=binary
25+
#*.vcxproj merge=binary
26+
#*.vcproj merge=binary
27+
#*.dbproj merge=binary
28+
#*.fsproj merge=binary
29+
#*.lsproj merge=binary
30+
#*.wixproj merge=binary
31+
#*.modelproj merge=binary
32+
#*.sqlproj merge=binary
33+
#*.wwaproj merge=binary
34+
35+
###############################################################################
36+
# behavior for image files
37+
#
38+
# image files are treated as binary by default.
39+
###############################################################################
40+
#*.jpg binary
41+
#*.png binary
42+
#*.gif binary
43+
44+
###############################################################################
45+
# diff behavior for common document formats
46+
#
47+
# Convert binary document formats to text before diffing them. This feature
48+
# is only available from the command line. Turn it on by uncommenting the
49+
# entries below.
50+
###############################################################################
51+
*.md diff=astextplain
52+
#*.doc diff=astextplain
53+
#*.DOC diff=astextplain
54+
#*.docx diff=astextplain
55+
#*.DOCX diff=astextplain
56+
#*.dot diff=astextplain
57+
#*.DOT diff=astextplain
58+
#*.pdf diff=astextplain
59+
#*.PDF diff=astextplain
60+
#*.rtf diff=astextplain
61+
#*.RTF diff=astextplain

.gitignore

-4
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ packages/
1515
*.exe
1616
*.chm
1717

18-
# These files are generated by bootstrap from a .v.template (version template).
19-
# Any changes must be done to the corresponding the .v.template file directly
20-
Microsoft.Quantum.Canon/Microsoft.Quantum.Canon.nuspec
21-
2218
# Python interop build outputs:
2319
Interoperability/python/build
2420
Interoperability/python/dist

.travis.yml

-29
This file was deleted.

Build/step-build-libs.yml

+22-5
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ steps:
99
- task: DotNetCoreCLI@2
1010
displayName: 'Build Libraries'
1111
inputs:
12-
projects: '**/*.sln'
13-
arguments: '-c $(BuildConfiguration) -v n'
12+
projects: |
13+
$(LibrariesRootFolder)/Canon.sln
14+
$(LibrariesRootFolder)/Chemistry.sln
15+
arguments: '-c $(BuildConfiguration) -v n /p:Version=$(Assembly.Version)'
1416

1517

1618
##
@@ -21,7 +23,22 @@ steps:
2123
inputs:
2224
command: test
2325
projects: |
24-
Samples/UnitTesting
25-
LibraryTests
26-
arguments: '-c $(BuildConfiguration) -v n'
26+
$(LibrariesRootFolder)/Canon/tests
27+
$(LibrariesRootFolder)/Chemistry/tests/ChemistryTests/ChemistryTests.csproj
28+
$(LibrariesRootFolder)/Chemistry/tests/SystemTests/SystemTests.csproj
29+
$(LibrariesRootFolder)/Chemistry/tests/DataModelTests/DataModelTests.csproj
30+
arguments: '-c $(BuildConfiguration) -v n /p:Version=$(Assembly.Version)'
31+
32+
##
33+
# Create Nuget.
34+
##
35+
- task: DotNetCoreCLI@2
36+
displayName: 'Pack Libraries nugets'
37+
inputs:
38+
command: custom
39+
custom: pack
40+
projects: |
41+
$(LibrariesRootFolder)/Canon/src/Canon.csproj
42+
$(LibrariesRootFolder)/Chemistry/src/DataModel/DataModel.csproj
43+
arguments: ' --no-build -c $(BuildConfiguration) -v n -o $(System.DefaultWorkingDirectory) /p:PackageVersion=$(Nuget.Version)'
2744

Build/step-build-python.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
##
2+
# Builds and creates the Q# Python interop package.
3+
##
4+
5+
steps:
6+
- task: NuGetToolInstaller@0
7+
displayName: 'Use NuGet 4.3.0'
8+
9+
10+
- task: CondaEnvironment@1
11+
displayName: 'Create and update conda environment'
12+
inputs:
13+
environmentName: qsharp-build
14+
packageSpecs: 'python=3 conda-build=3.15.1'
15+
16+
17+
- task: PowerShell@1
18+
displayName: 'Python Interop conda build 3.5'
19+
inputs:
20+
scriptName: '$(LibrariesRootFolder)/Interoperability/python/build.ps1'
21+
arguments: '-PythonVersion 3.5'
22+
workingFolder: '$(LibrariesRootFolder)/Interoperability/python'
23+
failOnStandardError: false
24+
condition: and(succeeded(), variables['Python3.5'])
25+
26+
27+
- task: PowerShell@1
28+
displayName: 'Python Interop conda build 3.6'
29+
inputs:
30+
scriptName: '$(LibrariesRootFolder)/Interoperability/python/build.ps1'
31+
arguments: '-PythonVersion 3.6'
32+
workingFolder: '$(LibrariesRootFolder)/Interoperability/python'
33+
failOnStandardError: false
34+

Canon.sln

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.27130.2024
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentation", "{561759D2-4D2D-4EE3-9565-9AAEC4A7D64B}"
7+
ProjectSection(SolutionItems) = preProject
8+
README.md = README.md
9+
EndProjectSection
10+
EndProject
11+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Canon", "Canon\src\Canon.csproj", "{A36EEB3F-89F0-4435-8527-2E68CC6067E1}"
12+
EndProject
13+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Canon.Tests", "Canon\tests\Canon.Tests.csproj", "{DEDA9681-2C11-492F-B1C9-D772BB45730A}"
14+
EndProject
15+
Global
16+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
17+
Debug|Any CPU = Debug|Any CPU
18+
Release|Any CPU = Release|Any CPU
19+
EndGlobalSection
20+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
21+
{A36EEB3F-89F0-4435-8527-2E68CC6067E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22+
{A36EEB3F-89F0-4435-8527-2E68CC6067E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
23+
{A36EEB3F-89F0-4435-8527-2E68CC6067E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
24+
{A36EEB3F-89F0-4435-8527-2E68CC6067E1}.Release|Any CPU.Build.0 = Release|Any CPU
25+
{DEDA9681-2C11-492F-B1C9-D772BB45730A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26+
{DEDA9681-2C11-492F-B1C9-D772BB45730A}.Debug|Any CPU.Build.0 = Debug|Any CPU
27+
{DEDA9681-2C11-492F-B1C9-D772BB45730A}.Release|Any CPU.ActiveCfg = Release|Any CPU
28+
{DEDA9681-2C11-492F-B1C9-D772BB45730A}.Release|Any CPU.Build.0 = Release|Any CPU
29+
EndGlobalSection
30+
GlobalSection(SolutionProperties) = preSolution
31+
HideSolutionNode = FALSE
32+
EndGlobalSection
33+
GlobalSection(ExtensibilityGlobals) = postSolution
34+
SolutionGuid = {6869E5BF-551A-40F1-9B6B-D1B27A5676CB}
35+
EndGlobalSection
36+
GlobalSection(Performance) = preSolution
37+
HasPerformanceSessions = true
38+
EndGlobalSection
39+
GlobalSection(Performance) = preSolution
40+
HasPerformanceSessions = true
41+
EndGlobalSection
42+
EndGlobal

Canon/README.md

1.34 KB

Microsoft.Quantum.Canon

Q# sources used to implement the canon portion of the Q# standard library.

Building and testing

The Canon, is a cross-platform project built using .Net Core. Once .Net Core is installed, you may build and run its tests by executing the following from a command line:

dotnet test tests

For more details about creating and running tests in Q#, see the Testing and debugging section of the developer's guide.

0 commit comments

Comments
 (0)