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

Commit

Permalink
Update to QDK release 0.14.2011.120240 (#444)
Browse files Browse the repository at this point in the history
* Build 0.14.2011.120240.

* remove optional parentheses (new v0.14 feature)

Co-authored-by: XField <vitorcia@microsoft.com>
  • Loading branch information
Guen P and msquantumdocs committed Nov 30, 2020
1 parent 783f4a7 commit 2a7297a
Show file tree
Hide file tree
Showing 65 changed files with 94 additions and 94 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.14.2011120240

# 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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
4 changes: 2 additions & 2 deletions samples/algorithms/database-search/DatabaseSearch.qs
Expand Up @@ -383,7 +383,7 @@ namespace Microsoft.Quantum.Samples.DatabaseSearch {
: Unit
is Adj + Ctl {
for (markedElement in markedElements) {
(ControlledOnInt(markedElement, X))(databaseRegister, markedQubit);
ControlledOnInt(markedElement, X)(databaseRegister, markedQubit);
}
}

Expand Down Expand Up @@ -487,7 +487,7 @@ namespace Microsoft.Quantum.Samples.DatabaseSearch {
// state.
using ((markedQubit, databaseRegister) = (Qubit(), Qubit[nDatabaseQubits])) {
// Implement the quantum search algorithm.
(GroverSearch(markedElements, nIterations, 0))([markedQubit] + databaseRegister);
GroverSearch(markedElements, nIterations, 0)([markedQubit] + databaseRegister);

// Measure the marked qubit. On success, this should be One.
let resultSuccess = MResetZ(markedQubit);
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
Expand Down
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
Expand Up @@ -55,7 +55,7 @@ namespace Microsoft.Quantum.Samples.ColoringGroverWithConstraints {
}
} apply {
// if all XORs are 0, the bit strings are equal.
(ControlledOnInt(0, X))(color1, target);
ControlledOnInt(0, X)(color1, target);
}
}

Expand Down Expand Up @@ -145,7 +145,7 @@ namespace Microsoft.Quantum.Samples.ColoringGroverWithConstraints {
edgeConflictQubits, startingColorConflictQubits, bitsPerColor);
} apply {
// If there are no conflicts (all qubits are in 0 state), the vertex coloring is valid.
(ControlledOnInt(0, X))(edgeConflictQubits + startingColorConflictQubits, target);
ControlledOnInt(0, X)(edgeConflictQubits + startingColorConflictQubits, target);
}
}
}
Expand All @@ -163,7 +163,7 @@ namespace Microsoft.Quantum.Samples.ColoringGroverWithConstraints {
for (((cell, value), conflictQubit) in
Zip(startingColorConstraints, startingColorConflictQubits)) {
// Check that cell does not clash with starting colors.
(ControlledOnInt(value, X))(colorsRegister[
ControlledOnInt(value, X)(colorsRegister[
cell * bitsPerColor .. (cell + 1) * bitsPerColor - 1], conflictQubit);
}

Expand Down Expand Up @@ -276,7 +276,7 @@ namespace Microsoft.Quantum.Samples.ColoringGroverWithConstraints {
}
} apply {
// If there are no conflicts (all qubits are in 0 state), the vertex coloring is valid.
(ControlledOnInt(0, X))(edgeConflictQubits + startingColorConflictQubits + vertexColorConflictQubits, target);
ControlledOnInt(0, X)(edgeConflictQubits + startingColorConflictQubits + vertexColorConflictQubits, target);
}
}
}
Expand All @@ -292,7 +292,7 @@ namespace Microsoft.Quantum.Samples.ColoringGroverWithConstraints {
operation ApplyOrOracle (queryRegister : Qubit[], target : Qubit) : Unit is Adj {
// x₀ ∨ x₁ = ¬ (¬x₀ ∧ ¬x₁)
// First, flip target if both qubits are in |0⟩ state.
(ControlledOnInt(0, X))(queryRegister, target);
ControlledOnInt(0, X)(queryRegister, target);
// Then flip target again to get negation.
X(target);
}
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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

<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.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.14.2011120240" />
</ItemGroup>

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.14.2011120240" />
</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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<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.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.14.2011120240" />
</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.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.14.2011120240" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.14.2011120240" />
<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

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

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.14.2011120240" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.14.2011120240" />
<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<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.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Research" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.14.2011120240" />
<PackageReference Include="Microsoft.Quantum.Research" Version="0.14.2011120240" />
</ItemGroup>

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

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Chemistry" Version="0.14.2011120240" />
</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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Xunit" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Xunit" Version="0.14.2011120240" />
<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/getting-started/simple-algorithms/DeutschJozsa.qs
Expand Up @@ -99,7 +99,7 @@ namespace Microsoft.Quantum.Samples.SimpleAlgorithms.DeutschJozsa {
// Note: As X accepts a Qubit, and ControlledOnInt only
// accepts Qubit[], we use ApplyToEachCA(X, _) which accepts
// Qubit[] even though the target is only 1 Qubit.
(ControlledOnInt(markedElement, ApplyToEachCA(X, _)))(query, [target]);
ControlledOnInt(markedElement, ApplyToEachCA(X, _))(query, [target]);
}
}

Expand Down
2 changes: 1 addition & 1 deletion samples/getting-started/simple-algorithms/HiddenShift.qs
Expand Up @@ -148,7 +148,7 @@ namespace Microsoft.Quantum.Samples.SimpleAlgorithms.HiddenShift {
ApplyPauliFromBitString(PauliX, true, shift, qs);
} apply {
// now we compute the IP function into the phase
(InnerProductBentFunction(u))(qs);
InnerProductBentFunction(u)(qs);
}
}

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

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

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
2 changes: 1 addition & 1 deletion samples/interoperability/dotnet/qsharp/Operations.qs
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.Quantum.Samples {
operation ApplyProductWithNegationFunction (vector : Bool[], controls : Qubit[], target : Qubit)
: Unit is Adj {
for ((bit, control) in Zip(vector, controls)) {
(ControlledOnInt(bit ? 1 | 0, X))([control], target);
ControlledOnInt(bit ? 1 | 0, X)([control], target);
}
}

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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<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.201118141-beta
- qsharp==0.14.2011120240
2 changes: 1 addition & 1 deletion samples/interoperability/qrng/Qrng.csproj
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.14.2011120240" />
<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.201118141-beta\")\n",
"qsharp.packages.add(\"Microsoft.Quantum.MachineLearning::0.14.2011120240\")\n",
"qsharp.reload()\n",
"\n",
"from Microsoft.Quantum.Samples import (\n",
Expand Down
@@ -1,12 +1,12 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.13.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.14.2011120240" />
<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.MachineLearning" Version="0.14.2011120240" />
<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.201118141-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.14.2011120240">

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

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.13.201118141-beta" />
<PackageReference Include="Microsoft.Quantum.Numerics" Version="0.14.2011120240" />
</ItemGroup>
</Project>

0 comments on commit 2a7297a

Please sign in to comment.