Remove references to Microsoft.Simulator target (#1144)

* Remove references to Microsoft.Simulator target

* Remove project from solution file
This commit is contained in:
Xinyi Joffre 2023-05-01 15:19:28 -07:00 коммит произвёл GitHub
Родитель 4cb6ec2f9b
Коммит 4976e913cf
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
4 изменённых файлов: 7 добавлений и 78 удалений

Просмотреть файл

@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.32510.428
# Visual Studio Version 17
VisualStudioVersion = 17.5.33530.505
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Quantum.Runtime.Core", "src\Simulation\Core\Microsoft.Quantum.Runtime.Core.csproj", "{E9123D45-C1B0-4462-8810-D26ED6D31944}"
EndProject
@ -115,8 +115,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Microsoft.Quantum.Aut
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Microsoft.Quantum.AutoSubstitution.Integration", "src\Simulation\AutoSubstitution.Integration.Tests\Tests.Microsoft.Quantum.AutoSubstitution.Integration.csproj", "{D23480EE-88FC-4DF2-86BD-1C5BDD6CD98C}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MicrosoftSimulatorExe", "src\Simulation\Simulators.Tests\TestProjects\MicrosoftSimulatorExe\MicrosoftSimulatorExe.csproj", "{9C317A71-702B-4C5D-9D19-D9A28CD483A5}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.TargetDefinitions", "src\Simulation\TargetDefinitions\Tests\Tests.TargetDefinitions.csproj", "{E5CB56D0-EDB1-4E07-A304-E17041F67642}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Quantum.Type4.Core", "src\Simulation\Type4Core\Microsoft.Quantum.Type4.Core.csproj", "{EE45DFE5-8045-49A6-8581-31830E882905}"
@ -185,8 +183,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Intrinsics", "Intrinsics",
src\Simulation\TargetDefinitions\Intrinsic\ApplyControlledZ.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyControlledZ.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledH.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledH.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRx.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRx.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRxx.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRxx.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRy.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRy.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRyy.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRyy.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRz.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRz.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRzz.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRzz.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledS.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledS.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledSAdj.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledSAdj.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledSWAP.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledSWAP.qs
@ -197,9 +198,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Intrinsics", "Intrinsics",
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledZ.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledZ.qs
src\Simulation\TargetDefinitions\Intrinsic\Exp.qs = src\Simulation\TargetDefinitions\Intrinsic\Exp.qs
src\Simulation\TargetDefinitions\Intrinsic\H.qs = src\Simulation\TargetDefinitions\Intrinsic\H.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRxx.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRxx.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRyy.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRyy.qs
src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRzz.qs = src\Simulation\TargetDefinitions\Intrinsic\ApplyUncontrolledRzz.qs
src\Simulation\TargetDefinitions\Intrinsic\M.qs = src\Simulation\TargetDefinitions\Intrinsic\M.qs
src\Simulation\TargetDefinitions\Intrinsic\Measure.qs = src\Simulation\TargetDefinitions\Intrinsic\Measure.qs
src\Simulation\TargetDefinitions\Intrinsic\MZ.qs = src\Simulation\TargetDefinitions\Intrinsic\MZ.qs
@ -236,7 +234,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TargetDefinitions", "Target
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{FCED13C1-1653-4473-9E8C-CD3670AB2412}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests.Type1", "src\Simulation\TargetDefinitions\Tests\Type1\Tests.Type1.csproj", "{2DB80BF7-FCD9-403D-84FF-4DAD25C76748}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tests.Type1", "src\Simulation\TargetDefinitions\Tests\Type1\Tests.Type1.csproj", "{2DB80BF7-FCD9-403D-84FF-4DAD25C76748}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -906,22 +904,6 @@ Global
{D23480EE-88FC-4DF2-86BD-1C5BDD6CD98C}.RelWithDebInfo|Any CPU.Build.0 = Debug|Any CPU
{D23480EE-88FC-4DF2-86BD-1C5BDD6CD98C}.RelWithDebInfo|x64.ActiveCfg = Debug|Any CPU
{D23480EE-88FC-4DF2-86BD-1C5BDD6CD98C}.RelWithDebInfo|x64.Build.0 = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.Debug|x64.ActiveCfg = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.Debug|x64.Build.0 = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.MinSizeRel|Any CPU.ActiveCfg = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.MinSizeRel|Any CPU.Build.0 = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.MinSizeRel|x64.ActiveCfg = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.MinSizeRel|x64.Build.0 = Debug|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.Release|Any CPU.Build.0 = Release|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.Release|x64.ActiveCfg = Release|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.Release|x64.Build.0 = Release|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.RelWithDebInfo|Any CPU.ActiveCfg = Release|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.RelWithDebInfo|Any CPU.Build.0 = Release|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.RelWithDebInfo|x64.ActiveCfg = Release|Any CPU
{9C317A71-702B-4C5D-9D19-D9A28CD483A5}.RelWithDebInfo|x64.Build.0 = Release|Any CPU
{E5CB56D0-EDB1-4E07-A304-E17041F67642}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E5CB56D0-EDB1-4E07-A304-E17041F67642}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E5CB56D0-EDB1-4E07-A304-E17041F67642}.Debug|x64.ActiveCfg = Debug|Any CPU
@ -1056,7 +1038,6 @@ Global
{33D66E90-049F-4A0B-A2B1-79E7E7E0ED0F} = {34D419E9-CCF1-4E48-9FA4-3AD4B86BEEB4}
{4EBC65DF-3B5E-419B-8E26-3EEF0B5CD300} = {34D419E9-CCF1-4E48-9FA4-3AD4B86BEEB4}
{D23480EE-88FC-4DF2-86BD-1C5BDD6CD98C} = {34D419E9-CCF1-4E48-9FA4-3AD4B86BEEB4}
{9C317A71-702B-4C5D-9D19-D9A28CD483A5} = {09C842CB-930C-4C7D-AD5F-E30DE4A55820}
{E5CB56D0-EDB1-4E07-A304-E17041F67642} = {93409CC3-8DF9-45FA-AE21-16A19FDEF650}
{EE45DFE5-8045-49A6-8581-31830E882905} = {93409CC3-8DF9-45FA-AE21-16A19FDEF650}
{68E86360-B9E6-4282-A27B-2B1C2B0CC025} = {34D419E9-CCF1-4E48-9FA4-3AD4B86BEEB4}

Просмотреть файл

@ -1,18 +0,0 @@
<Project Sdk="Microsoft.Quantum.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<!-- we will provide our own -->
<IncludeQSharpCorePackages>false</IncludeQSharpCorePackages>
<IncludeCSharpRuntime>false</IncludeCSharpRuntime>
<IncludeProviderPackages>false</IncludeProviderPackages>
<ExecutionTarget>microsoft.simulator</ExecutionTarget>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\EntryPointDriver\Microsoft.Quantum.EntryPointDriver.csproj" />
<ProjectReference Include="..\..\..\QSharpCore\Microsoft.Quantum.QSharp.Core.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -1,34 +0,0 @@
namespace Quantum.MicrosoftSimulatorExe {
open Microsoft.Quantum.Intrinsic;
open Microsoft.Quantum.Measurement;
operation ApplyToEachCA<'T> (singleElementOperation : ('T => Unit is Adj + Ctl), register : 'T[])
: Unit is Adj + Ctl {
for q in register {
singleElementOperation(q);
}
}
operation ForEach<'T, 'U> (action : ('T => 'U), array : 'T[]) : 'U[] {
let length = Length(array);
if length == 0 {
return [];
}
let first = action(array[0]);
mutable retval = [first, size = length];
for idx in 1..length - 1 {
set retval w/= idx <- action(array[idx]);
}
return retval;
}
@EntryPoint()
operation HelloQ () : Unit {
use qubits = Qubit[10]
{
ApplyToEachCA(H, qubits);
let resuls = ForEach(MResetZ, qubits);
}
}
}

Просмотреть файл

@ -5,7 +5,7 @@
<IncludeQSharpCorePackages>false</IncludeQSharpCorePackages>
<IncludeCSharpRuntime>false</IncludeCSharpRuntime>
<IncludeProviderPackages>false</IncludeProviderPackages>
<ExecutionTarget>microsoft.simulator.fullstate</ExecutionTarget>
<ExecutionTarget>microsoft.estimator</ExecutionTarget>
</PropertyGroup>
<ItemGroup>