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

Commit

Permalink
Updating to latest releas (0.10.1910.3107) (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
anpaz authored and bettinaheim committed Nov 3, 2019
1 parent 2bc1cb9 commit 30428f0
Show file tree
Hide file tree
Showing 48 changed files with 184 additions and 159 deletions.
6 changes: 6 additions & 0 deletions Build/steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ steps:
##
# Pre-reqs
##
- task: UseDotNet@2
displayName: 'Use .NET Core SDK 3.0.100'
inputs:
packageType: sdk
version: '3.0.100'

- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/microsoft/iqsharp/blob/master/images/iqsharp-base/Dockerfile.
# As per Binder documentation, we choose to use an SHA sum here instead of a
# tag.
FROM mcr.microsoft.com/quantum/iqsharp-base:0.9.1909.3002
FROM mcr.microsoft.com/quantum/iqsharp-base:0.10.1910.3107

# Mark that this Dockerfile is used with the samples repository.
ENV IQSHARP_HOSTING_ENV=SAMPLES_DOCKERFILE
Expand Down
16 changes: 16 additions & 0 deletions NuGet.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. -->

<!--
This configuration adds the Quantum Development Kit prerelease feed to the NuGet feeds.
This allows to reference prerelease packages from other parts of the Quantum Development Kit for testing purposes.
See https://docs.microsoft.com/en-us/nuget/consume-packages/configuring-nuget-behavior#how-settings-are-applied
for more information about how NuGet and the .NET Core SDK find package sources specified in NuGet.Config files.
-->
<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" />
</packageSources>
</configuration>
6 changes: 3 additions & 3 deletions samples/algorithms/chsh-game/CHSHGame.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions samples/algorithms/database-search/Database Search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"outputs": [
{
"data": {
"application/json": "{\"name\":\"Microsoft.Quantum.Canon.ControlledOnInt\",\"kind\":1,\"source\":\"/home/jovyan/.nuget/packages/microsoft.quantum.standard/0.9.1908.2906/lib/netstandard2.0/Microsoft.Quantum.Standard.dll\",\"documentation\":\" # Summary\\n Returns a unitary operator that applies an oracle on the target register if the control register state corresponds to a specified positive integer.\\n\\n # Input\\n ## numberState\\n Positive integer.\\n ## oracle\\n Unitary operator.\\n\\n # Output\\n A unitary operator that applies `oracle` on the target register if the control register state corresponds to the number state `numberState`.\"}",
"application/json": "{\"name\":\"Microsoft.Quantum.Canon.ControlledOnInt\",\"kind\":1,\"source\":\"/home/jovyan/.nuget/packages/microsoft.quantum.standard/0.9.1908.2906/lib/netstandard2.1/Microsoft.Quantum.Standard.dll\",\"documentation\":\" # Summary\\n Returns a unitary operator that applies an oracle on the target register if the control register state corresponds to a specified positive integer.\\n\\n # Input\\n ## numberState\\n Positive integer.\\n ## oracle\\n Unitary operator.\\n\\n # Output\\n A unitary operator that applies `oracle` on the target register if the control register state corresponds to the number state `numberState`.\"}",
"text/html": [
"<h4><i class=\"fa fas fa-terminal\"></i> Microsoft.Quantum.Canon.ControlledOnInt <a href=\"/home/jovyan/.nuget/packages/microsoft.quantum.standard/0.9.1908.2906/lib/netstandard2.0/Microsoft.Quantum.Standard.dll\"><i class=\"fa fas fa-code\"></i></a></h4><h1>Summary</h1>\n",
"<h4><i class=\"fa fas fa-terminal\"></i> Microsoft.Quantum.Canon.ControlledOnInt <a href=\"/home/jovyan/.nuget/packages/microsoft.quantum.standard/0.9.1908.2906/lib/netstandard2.1/Microsoft.Quantum.Standard.dll\"><i class=\"fa fas fa-code\"></i></a></h4><h1>Summary</h1>\n",
"<p>Returns a unitary operator that applies an oracle on the target register if the control register state corresponds to a specified positive integer.</p>\n",
"<h1>Input</h1>\n",
"<h2>numberState</h2>\n",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions samples/algorithms/oracle-synthesis/OracleSynthesis.csproj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<StartupObject>Microsoft.Quantum.Samples.OracleSynthesis.Program</StartupObject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
8 changes: 4 additions & 4 deletions samples/algorithms/order-finding/OrderFinding.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<StartupObject>Microsoft.Quantum.Samples.OrderFinding.Program</StartupObject>
</PropertyGroup>
Expand All @@ -11,7 +11,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<StartupObject>Microsoft.Quantum.Samples.ReversibleLogicSynthesis.Driver</StartupObject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
12 changes: 6 additions & 6 deletions samples/algorithms/simple-grover/SimpleGroverSample.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Compiler" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Compiler" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

Expand All @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand All @@ -14,8 +14,8 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.1.1" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
</ItemGroup>

</Project>
8 changes: 4 additions & 4 deletions samples/chemistry/GetGateCount/3-GetGateCount.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
<AssemblyName>get-gatecount</AssemblyName>
</PropertyGroup>
Expand All @@ -17,9 +17,9 @@
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.1.1" />
<PackageReference Include="Microsoft.PowerShell.5.ReferenceAssemblies" Version="1.1.0" NoWarn="NU1701" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
</ItemGroup>


Expand Down
4 changes: 2 additions & 2 deletions samples/chemistry/GetGateCount/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ For more options, run `dotnet run -- -?`.
To use this sample from PowerShell, import the `get-gatecount.dll` assembly as a module, and use the `Get-GateCount` command, replacing `<runtime>` with either `win10-x64`, `osx-x64`, or `linux-x64`:
```powershell
dotnet publish --self-contained -r <runtime>
Import-Module ./bin/Debug/netcoreapp2.0/<runtime>/publish/get-gatecount.dll
Import-Module ./bin/Debug/netcoreapp3.0/<runtime>/publish/get-gatecount.dll
Get-GateCount -Path ../IntegralData/YAML/h2.yaml -Format Broombridge
```

Expand Down Expand Up @@ -132,7 +132,7 @@ To do so, replace `<runtime>` in the snippet below with either `win10-x64`, `lin
```PowerShell
cd Samples/GateCount
dotnet publish --self-contained -r <runtime>
Import-Module ./bin/Debug/netcoreapp2.0/<runtime>/publish/get-gatecount.dll
Import-Module ./bin/Debug/netcoreapp3.0/<runtime>/publish/get-gatecount.dll
```
The `Get-GateCount` command is now available, and can be used to estimate costs for evolution under different quantum chemistry Hamiltonians.
Expand Down
6 changes: 3 additions & 3 deletions samples/chemistry/LithiumHydrideGUI/LithiumHydrideGUI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

Expand All @@ -24,8 +24,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Mono.Options" Version="5.3.0.1" />
</ItemGroup>

Expand Down
8 changes: 4 additions & 4 deletions samples/chemistry/MolecularHydrogen/MolecularHydrogen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

Expand All @@ -25,8 +25,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
</ItemGroup>

Expand Down
10 changes: 5 additions & 5 deletions samples/chemistry/RunSimulation/2-RunSimulation.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="McMaster.Extensions.CommandLineUtils" Version="2.3.4" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="2.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.1.1" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Research" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Research" Version="0.10.1910.3107" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.0</TargetFramework>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.9.1909.3002" />
<PackageReference Include="Microsoft.Quantum.Standard" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.10.1910.3107" />
<PackageReference Include="Microsoft.Quantum.Development.Kit" Version="0.10.1910.3107" />
</ItemGroup>
</Project>
Loading

0 comments on commit 30428f0

Please sign in to comment.