Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion images/iqsharp-base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ENV PATH=$PATH:${HOME}/dotnet:${HOME}/.dotnet/tools \
# Install IQ# and the project templates, using the NuGet packages from the
# build context.
ARG IQSHARP_VERSION
RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.12.20073008-beta" && \
RUN dotnet new -i "Microsoft.Quantum.ProjectTemplates::0.12.20081729-beta" && \
dotnet tool install \
--global \
Microsoft.Quantum.IQSharp \
Expand Down
2 changes: 1 addition & 1 deletion src/AzureClient/AzureClient.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Quantum.Client" Version="0.12.20073008-beta" />
<PackageReference Include="Microsoft.Azure.Quantum.Client" Version="0.12.20081729-beta" />
<PackageReference Include="Microsoft.Rest.ClientRuntime" Version="2.3.21" />
<PackageReference Include="Microsoft.Rest.ClientRuntime.Azure" Version="3.3.19" />
<PackageReference Include="System.Reactive" Version="4.3.2" />
Expand Down
6 changes: 3 additions & 3 deletions src/Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
<PackageReference Include="Microsoft.CSharp" Version="4.5.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.0.0" />
<PackageReference Include="Microsoft.Quantum.Compiler" Version="0.12.20073008-beta" />
<PackageReference Include="Microsoft.Quantum.CsharpGeneration" Version="0.12.20073008-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.12.20073008-beta" />
<PackageReference Include="Microsoft.Quantum.Compiler" Version="0.12.20081729-beta" />
<PackageReference Include="Microsoft.Quantum.CsharpGeneration" Version="0.12.20081729-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.12.20081729-beta" />
<PackageReference Include="NuGet.Resolver" Version="5.1.0" />
<PackageReference Include="System.Runtime.Loader" Version="4.3.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/ExecutionPathTracer/ExecutionPathTracer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.12.20073008-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.12.20081729-beta" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/MockLibraries/Mock.Chemistry/Mock.Chemistry.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.12.20073008-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.12.20081729-beta">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<IncludeQsharpCorePackages>false</IncludeQsharpCorePackages> <!-- otherwise the standard library is included by the Sdk -->
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.12.20073008-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.12.20081729-beta" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions src/MockLibraries/Mock.Standard/Mock.Standard.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.12.20073008-beta">
<Project Sdk="Microsoft.Quantum.Sdk/0.12.20081729-beta">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<IncludeQsharpCorePackages>false</IncludeQsharpCorePackages> <!-- otherwise the standard library is included by the Sdk -->
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.12.20073008-beta" />
<PackageReference Include="Microsoft.Quantum.Simulators" Version="0.12.20081729-beta" />
</ItemGroup>
</Project>
17 changes: 17 additions & 0 deletions src/Tests/ExecutionPathTracerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,23 @@ public void NoQubitArgsTest()
Assert.AreEqual(expected.ToJson(), path.ToJson());
}

[TestMethod]
public void WithQArrayArgsTest()
{
var path = GetExecutionPath("WithQArrayArgsCirc");
var qubits = new QubitDeclaration[] { };
var operations = new Operation[]
{
new Operation()
{
Gate = "WithQArrayArgs",
DisplayArgs = "([False, True])",
},
};
var expected = new ExecutionPath(qubits, operations);
Assert.AreEqual(expected.ToJson(), path.ToJson());
}

[TestMethod]
public void OperationArgsTest()
{
Expand Down
18 changes: 10 additions & 8 deletions src/Tests/Workspace.ExecutionPathTracer/Circuits.qs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ namespace Tests.ExecutionPathTracer {

// Custom operation
operation Foo(theta : Double, (qubit : Qubit, bar : String)) : Unit
is Adj + Ctl {
}
is Adj + Ctl { }

operation FooCirc() : Unit {
using (q = Qubit()) {
Expand All @@ -35,16 +34,20 @@ namespace Tests.ExecutionPathTracer {
}
}

operation NoQubitCirc(n : Int) : Unit {
}
operation NoQubitCirc(n : Int) : Unit { }

operation NoQubitArgsCirc() : Unit {
NoQubitCirc(2);
}

operation OperationCirc(op : (Qubit => Unit), n : Int) : Unit {
operation WithQArrayArgs(bits: Bool[]): Unit { }

operation WithQArrayArgsCirc(): Unit {
WithQArrayArgs([false, true]);
}

operation OperationCirc(op : (Qubit => Unit), n : Int) : Unit { }

operation OperationArgsCirc() : Unit {
OperationCirc(H, 5);
}
Expand Down Expand Up @@ -78,8 +81,7 @@ namespace Tests.ExecutionPathTracer {
}

operation Bar((alpha : Double, beta : Double), (q : Qubit, name : String)) : Unit
is Adj + Ctl {
}
is Adj + Ctl { }

operation BigCirc() : Unit {
using (qs = Qubit[3]) {
Expand All @@ -94,5 +96,5 @@ namespace Tests.ExecutionPathTracer {
ResetAll(qs);
}
}

}
30 changes: 15 additions & 15 deletions src/Tool/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
},
"AllowedHosts": "*",
"DefaultPackageVersions": [
"Microsoft.Quantum.Compiler::0.12.20073008-beta",
"Microsoft.Quantum.Compiler::0.12.20081729-beta",

"Microsoft.Quantum.CsharpGeneration::0.12.20073008-beta",
"Microsoft.Quantum.Development.Kit::0.12.20073008-beta",
"Microsoft.Quantum.Simulators::0.12.20073008-beta",
"Microsoft.Quantum.Xunit::0.12.20073008-beta",
"Microsoft.Quantum.CsharpGeneration::0.12.20081729-beta",
"Microsoft.Quantum.Development.Kit::0.12.20081729-beta",
"Microsoft.Quantum.Simulators::0.12.20081729-beta",
"Microsoft.Quantum.Xunit::0.12.20081729-beta",

"Microsoft.Quantum.Standard::0.12.20073008-beta",
"Microsoft.Quantum.Chemistry::0.12.20073008-beta",
"Microsoft.Quantum.Chemistry.Jupyter::0.12.20073008-beta",
"Microsoft.Quantum.MachineLearning::0.12.20073008-beta",
"Microsoft.Quantum.Numerics::0.12.20073008-beta",
"Microsoft.Quantum.Standard::0.12.20081729-beta",
"Microsoft.Quantum.Chemistry::0.12.20081729-beta",
"Microsoft.Quantum.Chemistry.Jupyter::0.12.20081729-beta",
"Microsoft.Quantum.MachineLearning::0.12.20081729-beta",
"Microsoft.Quantum.Numerics::0.12.20081729-beta",

"Microsoft.Quantum.Katas::0.12.20073008-beta",
"Microsoft.Quantum.Katas::0.12.20081729-beta",

"Microsoft.Quantum.Research::0.12.20073008-beta",
"Microsoft.Quantum.Research::0.12.20081729-beta",

"Microsoft.Quantum.Providers.IonQ::0.12.20073008-beta",
"Microsoft.Quantum.Providers.Honeywell::0.12.20073008-beta",
"Microsoft.Quantum.Providers.QCI::0.12.20073008-beta"
"Microsoft.Quantum.Providers.IonQ::0.12.20081729-beta",
"Microsoft.Quantum.Providers.Honeywell::0.12.20081729-beta",
"Microsoft.Quantum.Providers.QCI::0.12.20081729-beta"
]
}