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

Commit

Permalink
Adaptions for API update in qsharp-runtime/#370 (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
bettinaheim committed Nov 5, 2020
1 parent a21bea5 commit 41c4fc3
Show file tree
Hide file tree
Showing 55 changed files with 83 additions and 86 deletions.
2 changes: 1 addition & 1 deletion Build/images/samples/Dockerfile
Expand Up @@ -2,7 +2,7 @@
# https://github.com/microsoft/iqsharp/blob/main/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.13.20102604
FROM mcr.microsoft.com/quantum/iqsharp-base:0.13.201118141-beta

# Mark that this Dockerfile is used with the samples repository.
ENV IQSHARP_HOSTING_ENV=SAMPLES_DOCKERFILE
Expand Down
2 changes: 1 addition & 1 deletion samples/algorithms/chsh-game/CHSHGame.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
7 changes: 2 additions & 5 deletions samples/algorithms/database-search/Program.cs
Expand Up @@ -5,10 +5,7 @@
using Microsoft.Quantum.Simulation.Core;
using Microsoft.Quantum.Simulation.Simulators;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Math;

namespace Microsoft.Quantum.Samples.DatabaseSearch
Expand All @@ -18,8 +15,8 @@ class Program
{
public static void Pause()
{
System.Console.WriteLine("\n\nPress any key to continue...\n\n");
System.Console.ReadKey();
Console.WriteLine("\n\nPress any key to continue...\n\n");
Console.ReadKey();
}

static void Main(string[] args)
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/algorithms/oracle-synthesis/OracleSynthesis.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/algorithms/order-finding/OrderFinding.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/algorithms/simple-grover/SimpleGroverSample.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/algorithms/sudoku-grover/SudokuGroverSample.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
Expand Up @@ -10,7 +10,7 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.7" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
</ItemGroup>

</Project>
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/chemistry/GetGateCount/3-GetGateCount.csproj
@@ -1,5 +1,5 @@

<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -18,7 +18,7 @@
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.7" />
<PackageReference Include="PowerShellStandard.Library" Version="5.1.0" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/chemistry/LithiumHydrideGUI/LithiumHydrideGUI.csproj
Expand Up @@ -24,8 +24,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.13.201118141-beta" />
<PackageReference Include="Mono.Options" Version="5.3.0.1" />
</ItemGroup>

Expand Down
4 changes: 2 additions & 2 deletions samples/chemistry/MolecularHydrogen/MolecularHydrogen.csproj
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
</ItemGroup>

</Project>
Expand Up @@ -25,8 +25,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.13.201118141-beta" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions samples/chemistry/RunSimulation/2-RunSimulation.csproj
@@ -1,5 +1,5 @@

<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -11,8 +11,8 @@
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="3.1.7" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="3.1.7" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Research" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Research" Version="0.13.201118141-beta" />
</ItemGroup>

<ItemGroup>
Expand Down
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions samples/diagnostics/unit-testing/UnitTesting.csproj
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Xunit" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Xunit" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
Expand Down
2 changes: 1 addition & 1 deletion samples/error-correction/bit-flip-code/BitFlipCode.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/error-correction/syndrome/Syndrome.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
Expand Down
2 changes: 1 addition & 1 deletion samples/getting-started/measurement/Measurement.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/getting-started/qrng/Qrng.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/interoperability/dotnet/qsharp/qsharp.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Library</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/interoperability/python/environment.yml
Expand Up @@ -23,4 +23,4 @@ dependencies:
- qinfer
- duecredit
- mpltools
- qsharp==0.13.20102604
- qsharp==0.13.201118141-beta
2 changes: 1 addition & 1 deletion samples/interoperability/qrng/Qrng.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
4 changes: 2 additions & 2 deletions samples/machine-learning/half-moons/HalfMoons.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.201118141-beta" />
<PackageReference Include="System.Text.Json" Version="4.6.0" />
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion samples/machine-learning/half-moons/HalfMoons.ipynb
Expand Up @@ -34,7 +34,7 @@
"plt.style.use('ggplot')\n",
"\n",
"import qsharp\n",
"qsharp.packages.add(\"Microsoft.Quantum.MachineLearning::0.13.20102604\")\n",
"qsharp.packages.add(\"Microsoft.Quantum.MachineLearning::0.13.201118141-beta\")\n",
"qsharp.reload()\n",
"\n",
"from Microsoft.Quantum.Samples import (\n",
Expand Down
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.201118141-beta" />
<PackageReference Include="System.Text.Json" Version="4.6.0" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions samples/machine-learning/wine/Wine.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.201118141-beta" />
<PackageReference Include="System.Text.Json" Version="4.6.0" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions samples/numerics/CustomModAdd/CustomModAdd.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -7,6 +7,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.201118141-beta" />
</ItemGroup>
</Project>
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -7,6 +7,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.201118141-beta" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions samples/numerics/ResourceCounting/ResourceCounting.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -7,6 +7,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.201118141-beta" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions samples/runtime/oracle-emulation/OracleEmulation.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand All @@ -7,6 +7,6 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.201118141-beta" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions samples/runtime/qpic-simulator/host/host.csproj
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Xunit" Version="0.13.20102604" />
<PackageReference Include="Microsoft.Quantum.Xunit" Version="0.13.201118141-beta" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.3.1" />
<ProjectReference Include="..\simulator\simulator.csproj" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion samples/runtime/qpic-simulator/simulator/simulator.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<OutputType>Library</OutputType>
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.20102604">
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<OutputType>Exe</OutputType>
Expand Down

0 comments on commit 41c4fc3

Please sign in to comment.