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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\Common\AssemblyCommon.props" />
<Import Project="..\Common\DebugSymbols.props" />

Expand All @@ -22,7 +22,7 @@

<ItemGroup>
<PackageReference Update="FSharp.Core" Version="4.7.0" />
<PackageReference Include="Microsoft.Quantum.Compiler" Version="0.15.2101126940" />
<PackageReference Include="Microsoft.Quantum.Compiler" Version="0.15.210222819-alpha" />
</ItemGroup>

<ItemGroup>
Expand Down
16 changes: 8 additions & 8 deletions src/Simulation/CSharpGeneration/SimulationCode.fs
Original file line number Diff line number Diff line change
Expand Up @@ -946,16 +946,16 @@ module SimulationCode =
/// a Property that returns an instance of the operation by calling the
/// IOperationFactory
let buildOpsProperties context (operations : QsQualifiedName list): MemberDeclarationSyntax list =
let getCallableAccessModifier qualifiedName =
let getCallableAccess qualifiedName =
match context.allCallables.TryGetValue qualifiedName with
| true, callable -> Some callable.Modifiers.Access
| true, callable -> Some callable.Access
| false, _ -> None

let getPropertyModifiers qualifiedName =
// Use the right accessibility for the property depending on the accessibility of the callable.
// Note: In C#, "private protected" is the intersection of protected and internal.
match getCallableAccessModifier qualifiedName |> Option.defaultValue DefaultAccess with
| DefaultAccess -> [ ``protected`` ]
match getCallableAccess qualifiedName |> Option.defaultValue Public with
| Public -> [ ``protected`` ]
| Internal -> [ ``private``; ``protected`` ]

let buildOne qualifiedName =
Expand Down Expand Up @@ -1439,8 +1439,8 @@ module SimulationCode =
(constructors @ properties @ methods)
``}``

let private classAccessModifier = function
| DefaultAccess -> ``public``
let private classAccess = function
| Public -> ``public``
| Internal -> ``internal``

// Builds the .NET class for the given operation.
Expand Down Expand Up @@ -1509,7 +1509,7 @@ module SimulationCode =
let methods = [ opNames |> buildInit context; inData |> fst; outData |> fst; buildRun context nonGenericName op.ArgumentTuple op.Signature.ArgumentType op.Signature.ReturnType ]

let modifiers =
let access = classAccessModifier op.Modifiers.Access
let access = classAccess op.Access
if opIsIntrinsic && not isConcreteIntrinsic then
[ access; ``abstract``; ``partial`` ]
else
Expand Down Expand Up @@ -1604,7 +1604,7 @@ module SimulationCode =

let baseClassName = udtBaseClassName context qsharpType
let baseClass = ``simpleBase`` baseClassName
let modifiers = [ classAccessModifier udt.Modifiers.Access ]
let modifiers = [ classAccess udt.Access ]
let interfaces = [ ``simpleBase`` "IApplyData" ]
let constructors = [ buildEmptyConstructor; buildBaseTupleConstructor ]
let qubitsField = buildQubitsField context qsharpType
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<Import Project="..\Common\AssemblyCommon.props" />
<Import Project="..\Common\Simulators.Dev.props" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">

<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">
<Import Project="..\TargetDefinitions\TargetPackages\QSharpCore.Package.props" />

<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<Import Project="..\Common\AssemblyCommon.props" />
<Import Project="..\Common\DebugSymbols.props" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<CSharpGeneration>false</CSharpGeneration>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<OutputType>Exe</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<Import Project="..\Common\Simulators.Test.props" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<Import Project="..\Common\Simulators.Test.props" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222819-alpha">

<Import Project="..\Common\Simulators.Test.props" />

Expand All @@ -19,5 +19,3 @@
</ItemGroup>

</Project>


Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<Import Project="..\Common\AssemblyCommon.props" />
<Import Project="..\Common\DebugSymbols.props" />
<Import Project="..\Common\Simulators.Dev.props" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<Import Project="..\TargetDefinitions\TargetPackages\Type1.Package.props" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.Quantum.Sdk/0.15.2101126940">
<Project Sdk="Microsoft.Quantum.Sdk/0.15.210222838-alpha">

<Import Project="..\TargetDefinitions\TargetPackages\Type2.Package.props" />

Expand Down
2 changes: 1 addition & 1 deletion src/Xunit/Microsoft.Quantum.Xunit.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<dependencies>
<dependency id="xunit" version="2.3.1" />
<dependency id="Microsoft.NET.Test.Sdk" version="15.3.0" />
<dependency id="Microsoft.Quantum.Runtime.Core" version="0.15.2101126940" />
<dependency id="Microsoft.Quantum.Runtime.Core" version="0.15.210222838-alpha" />
</dependencies>
</metadata>

Expand Down