+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
+
+
diff --git a/samples/getting-started/intro-to-iqsharp/Notebook.ipynb b/samples/getting-started/intro-to-iqsharp/Notebook.ipynb
index 8f19f6adef19..7e3b73245819 100644
--- a/samples/getting-started/intro-to-iqsharp/Notebook.ipynb
+++ b/samples/getting-started/intro-to-iqsharp/Notebook.ipynb
@@ -604,9 +604,9 @@
"outputs": [
{
"data": {
- "application/json": "{\"name\":\"Microsoft.Quantum.Intrinsic.X\",\"kind\":1,\"source\":\"/home/jovyan/.dotnet/tools/.store/microsoft.quantum.iqsharp/0.9.1908.2906/microsoft.quantum.iqsharp/0.9.1908.2906/tools/netcoreapp2.2/any/Microsoft.Quantum.Intrinsic.dll\",\"documentation\":\" # Summary\\n Applies the Pauli $X$ gate.\\n\\n \\\\begin{align}\\n \\\\sigma_x \\\\mathrel{:=}\\n \\\\begin{bmatrix}\\n 0 & 1 \\\\\\\\\\\\\\\\\\n 1 & 0\\n \\\\end{bmatrix}.\\n \\\\end{align}\\n\\n # Input\\n ## qubit\\n Qubit to which the gate should be applied.\"}",
+ "application/json": "{\"name\":\"Microsoft.Quantum.Intrinsic.X\",\"kind\":1,\"source\":\"/home/jovyan/.dotnet/tools/.store/microsoft.quantum.iqsharp/0.9.1908.2906/microsoft.quantum.iqsharp/0.9.1908.2906/tools/netcoreapp3.0/any/Microsoft.Quantum.Intrinsic.dll\",\"documentation\":\" # Summary\\n Applies the Pauli $X$ gate.\\n\\n \\\\begin{align}\\n \\\\sigma_x \\\\mathrel{:=}\\n \\\\begin{bmatrix}\\n 0 & 1 \\\\\\\\\\\\\\\\\\n 1 & 0\\n \\\\end{bmatrix}.\\n \\\\end{align}\\n\\n # Input\\n ## qubit\\n Qubit to which the gate should be applied.\"}",
"text/html": [
- " Microsoft.Quantum.Intrinsic.X
Summary
\n",
+ " Microsoft.Quantum.Intrinsic.X
Summary
\n",
"Applies the Pauli $X$ gate.
\n",
"\\begin{align}\n",
"\\sigma_x \\mathrel{:=}\n",
diff --git a/samples/getting-started/measurement/Measurement.csproj b/samples/getting-started/measurement/Measurement.csproj
index 00a25d1ebab2..58447f44c681 100644
--- a/samples/getting-started/measurement/Measurement.csproj
+++ b/samples/getting-started/measurement/Measurement.csproj
@@ -1,13 +1,13 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
+
+
diff --git a/samples/getting-started/simple-algorithms/SimpleAlgorithms.csproj b/samples/getting-started/simple-algorithms/SimpleAlgorithms.csproj
index a774df2301b5..9781eb833b1c 100644
--- a/samples/getting-started/simple-algorithms/SimpleAlgorithms.csproj
+++ b/samples/getting-started/simple-algorithms/SimpleAlgorithms.csproj
@@ -1,14 +1,14 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
Microsoft.Quantum.Samples.SimpleAlgorithms.Driver
-
-
+
+
diff --git a/samples/getting-started/teleportation/TeleportationSample.csproj b/samples/getting-started/teleportation/TeleportationSample.csproj
index 00a25d1ebab2..58447f44c681 100644
--- a/samples/getting-started/teleportation/TeleportationSample.csproj
+++ b/samples/getting-started/teleportation/TeleportationSample.csproj
@@ -1,13 +1,13 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
+
+
diff --git a/samples/getting-started/teleportation/TeleportationSample.qs b/samples/getting-started/teleportation/TeleportationSample.qs
index 3ac6cd5ad99f..5abd95513f4d 100644
--- a/samples/getting-started/teleportation/TeleportationSample.qs
+++ b/samples/getting-started/teleportation/TeleportationSample.qs
@@ -91,7 +91,7 @@ namespace Microsoft.Quantum.Samples.Teleportation {
Teleport(msg, target);
// Check what message was sent.
- return M(target) == One;
+ return MResetZ(target) == One;
}
}
diff --git a/samples/interoperability/fsharp/FSharpDriver/FSharpDriver.fsproj b/samples/interoperability/fsharp/FSharpDriver/FSharpDriver.fsproj
index aa93c587d7cd..77a5e02a52a2 100644
--- a/samples/interoperability/fsharp/FSharpDriver/FSharpDriver.fsproj
+++ b/samples/interoperability/fsharp/FSharpDriver/FSharpDriver.fsproj
@@ -2,11 +2,11 @@
Exe
- netcoreapp2.1
+ netcoreapp3.0
-
+
diff --git a/samples/interoperability/fsharp/FSharpDriver/Driver.fs b/samples/interoperability/fsharp/FSharpDriver/Host.fs
similarity index 100%
rename from samples/interoperability/fsharp/FSharpDriver/Driver.fs
rename to samples/interoperability/fsharp/FSharpDriver/Host.fs
diff --git a/samples/interoperability/fsharp/QuantumCode/QuantumCode.csproj b/samples/interoperability/fsharp/QuantumCode/QuantumCode.csproj
index fda31b0f5c05..3c7cd040b62c 100644
--- a/samples/interoperability/fsharp/QuantumCode/QuantumCode.csproj
+++ b/samples/interoperability/fsharp/QuantumCode/QuantumCode.csproj
@@ -1,11 +1,11 @@
-
+
- netstandard2.0
+ netstandard2.1
x64
-
-
+
+
diff --git a/samples/interoperability/python/environment.yml b/samples/interoperability/python/environment.yml
index 8cfa689d5bd5..82b7af63707d 100644
--- a/samples/interoperability/python/environment.yml
+++ b/samples/interoperability/python/environment.yml
@@ -23,4 +23,4 @@ dependencies:
- qinfer
- duecredit
- mpltools
- - qsharp==0.9.1909.3002
+ - qsharp==0.10.1910.3107
diff --git a/samples/numerics/CustomModAdd/CustomModAdd.csproj b/samples/numerics/CustomModAdd/CustomModAdd.csproj
index c389bd55d9d7..b2b98d09f769 100644
--- a/samples/numerics/CustomModAdd/CustomModAdd.csproj
+++ b/samples/numerics/CustomModAdd/CustomModAdd.csproj
@@ -1,12 +1,12 @@
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
-
+
+
+
\ No newline at end of file
diff --git a/samples/numerics/EvaluatingFunctions/EvaluatingFunctions.csproj b/samples/numerics/EvaluatingFunctions/EvaluatingFunctions.csproj
index c389bd55d9d7..b2b98d09f769 100644
--- a/samples/numerics/EvaluatingFunctions/EvaluatingFunctions.csproj
+++ b/samples/numerics/EvaluatingFunctions/EvaluatingFunctions.csproj
@@ -1,12 +1,12 @@
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
-
+
+
+
\ No newline at end of file
diff --git a/samples/numerics/ResourceCounting/ResourceCounting.csproj b/samples/numerics/ResourceCounting/ResourceCounting.csproj
index c389bd55d9d7..b2b98d09f769 100644
--- a/samples/numerics/ResourceCounting/ResourceCounting.csproj
+++ b/samples/numerics/ResourceCounting/ResourceCounting.csproj
@@ -1,12 +1,12 @@
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
-
+
+
+
\ No newline at end of file
diff --git a/samples/runtime/oracle-emulation/OracleEmulation.csproj b/samples/runtime/oracle-emulation/OracleEmulation.csproj
index d98907611a40..e7236c155d8c 100644
--- a/samples/runtime/oracle-emulation/OracleEmulation.csproj
+++ b/samples/runtime/oracle-emulation/OracleEmulation.csproj
@@ -1,15 +1,15 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
Microsoft.Quantum.Samples.OracleEmulation.Driver
-
-
-
+
+
+
diff --git a/samples/runtime/state-visualizer/Startup.cs b/samples/runtime/state-visualizer/Startup.cs
index a3326c989275..f7a23265789b 100644
--- a/samples/runtime/state-visualizer/Startup.cs
+++ b/samples/runtime/state-visualizer/Startup.cs
@@ -4,6 +4,7 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
namespace Microsoft.Quantum.Samples.StateVisualizer
{
@@ -21,14 +22,18 @@ public void ConfigureServices(IServiceCollection services)
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
- public void Configure(IApplicationBuilder app, IApplicationLifetime lifetime, StateVisualizer visualizer)
+ public void Configure(IApplicationBuilder app, IHostApplicationLifetime lifetime, StateVisualizer visualizer)
{
app
.UseDefaultFiles()
.UseStaticFiles()
.UseDeveloperExceptionPage()
- .UseMvc()
- .UseSignalR(routes => routes.MapHub("/events"));
+ .UseRouting()
+ .UseEndpoints(endpoints =>
+ {
+ endpoints.MapControllers();
+ endpoints.MapHub("/events");
+ });
lifetime.ApplicationStopping.Register(visualizer.Stop);
}
}
diff --git a/samples/runtime/state-visualizer/StateVisualizer.csproj b/samples/runtime/state-visualizer/StateVisualizer.csproj
index ff6c09937a09..1fb779ea5d03 100644
--- a/samples/runtime/state-visualizer/StateVisualizer.csproj
+++ b/samples/runtime/state-visualizer/StateVisualizer.csproj
@@ -1,14 +1,12 @@
-
+
- netcoreapp2.2
+ netcoreapp3.0
InProcess
Microsoft.Quantum.Samples.StateVisualizer
-
-
-
-
+
+
diff --git a/samples/simulation/h2/command-line/H2SimulationSampleCmdLine.csproj b/samples/simulation/h2/command-line/H2SimulationSampleCmdLine.csproj
index 00a25d1ebab2..58447f44c681 100644
--- a/samples/simulation/h2/command-line/H2SimulationSampleCmdLine.csproj
+++ b/samples/simulation/h2/command-line/H2SimulationSampleCmdLine.csproj
@@ -1,13 +1,13 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
+
+
diff --git a/samples/simulation/h2/gui/H2SimulationGUI.csproj b/samples/simulation/h2/gui/H2SimulationGUI.csproj
index f54fbf6d21b4..a08e629f046d 100644
--- a/samples/simulation/h2/gui/H2SimulationGUI.csproj
+++ b/samples/simulation/h2/gui/H2SimulationGUI.csproj
@@ -1,15 +1,15 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
+
-
+
diff --git a/samples/simulation/h2/gui/H2SimulationOperations.qs b/samples/simulation/h2/gui/H2SimulationOperations.qs
index b885c217784a..d0659363dacb 100644
--- a/samples/simulation/h2/gui/H2SimulationOperations.qs
+++ b/samples/simulation/h2/gui/H2SimulationOperations.qs
@@ -146,7 +146,7 @@ namespace Microsoft.Quantum.Samples.H2Simulation {
/// Given the index of a bond length, returns an operation that
/// represents the decomposition of the corresponding Hamiltonian
/// into unitary gates.
- function H2TrotterUnitaries (idxBondLength : Int) : (Int, ((Int, Double, Qubit[]) => Unit : Adjoint, Controlled)) {
+ function H2TrotterUnitaries (idxBondLength : Int) : (Int, ((Int, Double, Qubit[]) => Unit is Adj + Ctl)) {
let nTerms = 5;
return (nTerms, H2TrotterUnitariesImpl(idxBondLength, _, _, _));
diff --git a/samples/simulation/hubbard/HubbardSimulationSample.csproj b/samples/simulation/hubbard/HubbardSimulationSample.csproj
index 00a25d1ebab2..58447f44c681 100644
--- a/samples/simulation/hubbard/HubbardSimulationSample.csproj
+++ b/samples/simulation/hubbard/HubbardSimulationSample.csproj
@@ -1,13 +1,13 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
+
+
diff --git a/samples/simulation/ising/adiabatic/AdiabaticIsingSample.csproj b/samples/simulation/ising/adiabatic/AdiabaticIsingSample.csproj
index 68ddf636b0b3..9fcfce2742e9 100644
--- a/samples/simulation/ising/adiabatic/AdiabaticIsingSample.csproj
+++ b/samples/simulation/ising/adiabatic/AdiabaticIsingSample.csproj
@@ -1,8 +1,8 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
@@ -11,7 +11,7 @@
-
-
+
+
diff --git a/samples/simulation/ising/generators/IsingGeneratorsSample.csproj b/samples/simulation/ising/generators/IsingGeneratorsSample.csproj
index 00a25d1ebab2..58447f44c681 100644
--- a/samples/simulation/ising/generators/IsingGeneratorsSample.csproj
+++ b/samples/simulation/ising/generators/IsingGeneratorsSample.csproj
@@ -1,13 +1,13 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
-
-
+
+
diff --git a/samples/simulation/ising/phase-estimation/IsingPhaseEstimationSample.csproj b/samples/simulation/ising/phase-estimation/IsingPhaseEstimationSample.csproj
index 9f0363ff78dd..ddbb2e6016a2 100644
--- a/samples/simulation/ising/phase-estimation/IsingPhaseEstimationSample.csproj
+++ b/samples/simulation/ising/phase-estimation/IsingPhaseEstimationSample.csproj
@@ -1,8 +1,8 @@
-
+
Exe
- netcoreapp2.0
+ netcoreapp3.0
x64
@@ -12,7 +12,7 @@