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

Commit

Permalink
Merge branch 'gulow/broombridge-0.3' of https://github.com/microsoft/…
Browse files Browse the repository at this point in the history
…QuantumLibraries into gulow/broombridge-0.3
  • Loading branch information
Dmitry Vasilevsky committed Sep 7, 2023
2 parents b3977b4 + 90098eb commit 2e640d1
Show file tree
Hide file tree
Showing 27 changed files with 60 additions and 83 deletions.
14 changes: 7 additions & 7 deletions Build/manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ $artifacts = @{
) | ForEach-Object { Join-Path $Env:NUGET_OUTDIR "$_.$Env:NUGET_VERSION.nupkg" };

Assemblies = @(
".\Standard\src\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Quantum.Standard.dll",
".\Visualization\src\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Quantum.Standard.Visualization.dll",
".\Numerics\src\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Quantum.Numerics.dll",
".\MachineLearning\src\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Quantum.MachineLearning.dll",
".\Chemistry\src\DataModel\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Quantum.Chemistry.DataModel.dll",
".\Chemistry\src\Jupyter\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Quantum.Chemistry.Jupyter.dll",
".\Chemistry\src\Runtime\bin\$Env:BUILD_CONFIGURATION\netstandard2.1\Microsoft.Quantum.Chemistry.Runtime.dll",
".\Standard\src\bin\$Env:BUILD_CONFIGURATION\net6.0\Microsoft.Quantum.Standard.dll",
".\Visualization\src\bin\$Env:BUILD_CONFIGURATION\net6.0\Microsoft.Quantum.Standard.Visualization.dll",
".\Numerics\src\bin\$Env:BUILD_CONFIGURATION\net6.0\Microsoft.Quantum.Numerics.dll",
".\MachineLearning\src\bin\$Env:BUILD_CONFIGURATION\net6.0\Microsoft.Quantum.MachineLearning.dll",
".\Chemistry\src\DataModel\bin\$Env:BUILD_CONFIGURATION\net6.0\Microsoft.Quantum.Chemistry.DataModel.dll",
".\Chemistry\src\Jupyter\bin\$Env:BUILD_CONFIGURATION\net6.0\Microsoft.Quantum.Chemistry.Jupyter.dll",
".\Chemistry\src\Runtime\bin\$Env:BUILD_CONFIGURATION\net6.0\Microsoft.Quantum.Chemistry.Runtime.dll",
".\Chemistry\src\Tools\bin\$Env:BUILD_CONFIGURATION\net6.0\qdk-chem.dll"
) | ForEach-Object { Join-Path $PSScriptRoot (Join-Path ".." $_) };
}
Expand Down
6 changes: 3 additions & 3 deletions Build/props/tests.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Xunit" Version="0.26.233415" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="Microsoft.Quantum.Xunit" Version="0.28.291394" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion Chemistry/src/DataModel/DataModel.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<AssemblyName>Microsoft.Quantum.Chemistry.DataModel</AssemblyName>
<DocumentationFile>bin\$(BuildConfiguration)\$(PlatformTarget)\$(AssemblyName).xml</DocumentationFile>
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/src/Jupyter/Jupyter.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<AssemblyName>Microsoft.Quantum.Chemistry.Jupyter</AssemblyName>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/src/Metapackage/Metapackage.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<AssemblyName>Microsoft.Quantum.Chemistry.Metapackage</AssemblyName>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions Chemistry/src/Runtime/Runtime.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>Microsoft.Quantum.Chemistry.Runtime</AssemblyName>
<QsharpDocsGeneration>true</QsharpDocsGeneration>
<IncludeQsharpCorePackages>false</IncludeQsharpCorePackages>
Expand Down Expand Up @@ -40,7 +40,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.26.233415" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.28.291394" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/tests/ChemistryTests/QSharpTests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">

<Import Project="..\..\..\Build\props\tests.props" />

Expand Down
4 changes: 2 additions & 2 deletions Chemistry/tests/DataModelTests/DataModelTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions Chemistry/tests/JupyterTests/JupyterTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="NETStandard.Library" Version="2.0.3" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions Chemistry/tests/SamplesTests/SamplesTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 1 addition & 1 deletion Chemistry/tests/SystemTests/SystemTests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">

<Import Project="..\..\..\Build\props\tests.props" />

Expand Down
4 changes: 2 additions & 2 deletions MachineLearning/src/MachineLearning.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>Microsoft.Quantum.MachineLearning</AssemblyName>
<QsharpDocsGeneration>true</QsharpDocsGeneration>
<QsharpDocsPackageId>Microsoft.Quantum.MachineLearning</QsharpDocsPackageId>
Expand Down
8 changes: 4 additions & 4 deletions MachineLearning/src/Training.qs
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ namespace Microsoft.Quantum.MachineLearning {
/// A set of labeled training data that will be used to perform training.
/// ## options
/// Configuration to be used when training; see
/// @"microsoft.quantum.machinelearning.trainingoptions" and
/// @"microsoft.quantum.machinelearning.defaulttrainingoptions" for more
/// @"Microsoft.Quantum.MachineLearning.TrainingOptions" and
/// @"Microsoft.Quantum.MachineLearning.DefaultTrainingOptions" for more
/// details.
/// ## trainingSchedule
/// A sampling schedule to use when selecting samples from the training
Expand Down Expand Up @@ -273,8 +273,8 @@ namespace Microsoft.Quantum.MachineLearning {
/// A set of labeled training data that will be used to perform training.
/// ## options
/// Configuration to be used when training; see
/// @"microsoft.quantum.machinelearning.trainingoptions" and
/// @"microsoft.quantum.machinelearning.defaulttrainingoptions" for more
/// @"Microsoft.Quantum.MachineLearning.TrainingOptions" and
/// @"Microsoft.Quantum.MachineLearning.DefaultTrainingOptions" for more
/// details.
/// ## trainingSchedule
/// A sampling schedule to use when selecting samples from the training
Expand Down
2 changes: 1 addition & 1 deletion MachineLearning/src/Types.qs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ namespace Microsoft.Quantum.MachineLearning {
///
/// # Remarks
/// This UDT should not be created directly, but rather should be specified
/// by calling @"microsoft.quantum.machinelearning.defaulttrainingoptions"
/// by calling @"Microsoft.Quantum.MachineLearning.DefaultTrainingOptions"
/// and then using the `w/` operator to override different defaults.
///
/// For example, to use 100,000 measurements and at most 8 training
Expand Down
2 changes: 1 addition & 1 deletion MachineLearning/tests/MachineLearningTests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">

<Import Project="..\..\Build\props\tests.props" />

Expand Down
2 changes: 1 addition & 1 deletion NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
-->
<configuration>
<packageSources>
<add key="qdk-alpha" value="https://pkgs.dev.azure.com/ms-quantum-public/Microsoft Quantum (public)/_packaging/alpha/nuget/v3/index.json" protocolVersion="3" />
<add key="qdk-alpha" value="https://pkgs.dev.azure.com/ms-quantum-public/9af4e09e-a436-4aca-9559-2094cfe8d80c/_packaging/alpha/nuget/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
4 changes: 2 additions & 2 deletions Numerics/src/FixedPoint/Facts.qs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace Microsoft.Quantum.Arithmetic {
let (position, register) = fixedPoints[0]!;
Fact(position > 0, "Point position must be greater than zero.");
let n = Length(register);
for fp in Most(fixedPoints) {
for fp in Rest(fixedPoints) {
EqualityFactI(fp::IntegerBits, position,
"FixedPoint numbers must have identical binary point position.");
EqualityFactI(Length(fp::Register), n,
Expand All @@ -56,7 +56,7 @@ namespace Microsoft.Quantum.Arithmetic {
let (position, register) = fixedPoints[0]!;
Fact(position > 0, "Point position must be greater than zero.");
let n = Length(register);
for fp in Most(fixedPoints) {
for fp in Rest(fixedPoints) {
EqualityFactI(Length(fp::Register) - fp::IntegerBits, n - position,
"FixedPoint numbers must have identical point alignment.");
}
Expand Down
6 changes: 3 additions & 3 deletions Numerics/src/Numerics.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>Microsoft.Quantum.Numerics</AssemblyName>
<QsharpDocsGeneration>true</QsharpDocsGeneration>
<QsharpDocsPackageId>Microsoft.Quantum.Numerics</QsharpDocsPackageId>
Expand Down Expand Up @@ -41,7 +41,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.26.233415" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.28.291394" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion Numerics/tests/NumericsTests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">

<Import Project="..\..\Build\props\tests.props" />

Expand Down
9 changes: 9 additions & 0 deletions Standard/src/Convert/Convert.qs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ namespace Microsoft.Quantum.Convert {
/// # Input
/// ## results
/// Results in binary representation of number.
///
/// # Output
/// A non-negative integer
///
/// # Example
/// ```qsharp
/// // The following returns 1
/// let int1 = ResultArrayAsInt([One,Zero])
/// ```
function ResultArrayAsInt(results : Result[]) : Int {
return BoolArrayAsInt(ResultArrayAsBoolArray(results));
}
Expand Down
2 changes: 1 addition & 1 deletion Standard/src/Preparation/Mixed.qs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ namespace Microsoft.Quantum.Preparation {
/// in the maximally mixed state instead (see <xref:Microsoft.Quantum.Preparation.PrepareSingleQubitIdentity>).
///
/// If the qubit was in a state other than $\ket{0}$, this operation applies the following gates:
/// $H$ for `PauliX`, $HS$ for `PauliY`, $I$ for `PauliZ` and
/// $H$ for `PauliX`, $SH$ for `PauliY`, $I$ for `PauliZ` and
/// <xref:Microsoft.Quantum.Preparation.PrepareSingleQubitIdentity> for `PauliI`.
///
/// # Input
Expand Down
8 changes: 4 additions & 4 deletions Standard/src/Standard.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>Microsoft.Quantum.Standard</AssemblyName>
<IncludeQsharpCorePackages>false</IncludeQsharpCorePackages> <!-- otherwise the standard library is included by the Sdk -->
<NoWarn>1591</NoWarn> <!-- warning regarding missing C# doc comments -->
Expand Down Expand Up @@ -38,8 +38,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.26.233415" />
<PackageReference Include="Microsoft.Quantum.QSharp.Core" Version="0.26.233415" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.28.291394" />
<PackageReference Include="Microsoft.Quantum.QSharp.Core" Version="0.28.291394" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="NumSharp" Version="0.20.5" />
</ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Standard/src/Synthesis/ControlledOnTruthTable.qs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ namespace Microsoft.Quantum.Synthesis {
/// in decimal notation. The `L` suffix indicates that the constant is of type `BigInt`.
/// More details on this representation can also be found in the [truth tables kata](https://github.com/microsoft/QuantumKatas/tree/main/TruthTables).
///
/// The implementation makes use of @"Microsoft.Quantum.Intrinsic.Cnot"
/// The implementation makes use of @"Microsoft.Quantum.Intrinsic.CNOT"
/// and @"Microsoft.Quantum.Intrinsic.R1" gates.
///
/// # Input
Expand Down Expand Up @@ -205,7 +205,7 @@ namespace Microsoft.Quantum.Synthesis {
/// This operation implements a special case of @"Microsoft.Quantum.Synthesis.ApplyXControlledOnTruthTable",
/// in which the target qubit is known to be in the $\ket{0}$ state.
///
/// The implementation makes use of @"Microsoft.Quantum.Intrinsic.Cnot"
/// The implementation makes use of @"Microsoft.Quantum.Intrinsic.CNOT"
/// and @"Microsoft.Quantum.Intrinsic.R1" gates. The implementation of the
/// adjoint operation is optimized and uses measurement-based uncomputation.
///
Expand Down
32 changes: 0 additions & 32 deletions Standard/tests/Canon/Utils/MultiplexerTests.cs

This file was deleted.

2 changes: 1 addition & 1 deletion Standard/tests/Standard.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.26.233415">
<Project Sdk="Microsoft.Quantum.Sdk/0.28.291394">

<Import Project="..\..\Build\props\tests.props" />

Expand Down
6 changes: 3 additions & 3 deletions Visualization/src/Visualization.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>Microsoft.Quantum.Standard.Visualization</AssemblyName>
<NoWarn>1591</NoWarn> <!-- warning regarding missing C# doc comments -->
</PropertyGroup>
Expand Down Expand Up @@ -32,9 +32,9 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.26.233415" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.28.291394" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Microsoft.Quantum.IQSharp.Jupyter" Version="0.26.233415" PrivateAssets="All" />
<PackageReference Include="Microsoft.Quantum.IQSharp.Jupyter" Version="0.28.291394" PrivateAssets="All" />
<PackageReference Include="NumSharp" Version="0.20.5" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion global.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"rollForward": "latestMinor"
},
"msbuild-sdks": {
"Microsoft.Quantum.Sdk": "0.26.233415"
"Microsoft.Quantum.Sdk": "0.28.291394"
}
}

0 comments on commit 2e640d1

Please sign in to comment.