Added Quorum and updated Qsharp (#771)

This commit is contained in:
Warren A. Kalolo
2020-07-20 04:47:56 +03:00
committed by GitHub
parent d254df8def
commit ed560ee2ca
5 changed files with 13 additions and 30 deletions

9
q/qsharp.qs Normal file
View File

@@ -0,0 +1,9 @@
namespace Quantum.HelloWorld {
open Microsoft.Quantum.Canon;
open Microsoft.Quantum.Intrinsic;
operation HelloWorld() : Unit {
Message("Hello World");
}
}

View File

@@ -1,19 +0,0 @@
using Microsoft.Quantum.Simulation.Simulators;
namespace Quantum.HelloWorld
{
class Driver
{
static void Main(string[] args)
{
using (var sim = new QuantumSimulator())
{
var res = HelloWorld.Run(sim).Result;
System.Console.WriteLine(
$"{res}");
}
System.Console.WriteLine("Press any key to continue...");
System.Console.ReadKey();
}
}
}

View File

@@ -1,10 +0,0 @@
namespace Quantum.HelloWorld
{
operation HelloWorld () : (String)
{
body
{
return ("Hello World");
}
}
}

1
q/quorum.quorum Normal file
View File

@@ -0,0 +1 @@
output "Hello World"