Added Quorum and updated Qsharp (#771)
This commit is contained in:
9
q/qsharp.qs
Normal file
9
q/qsharp.qs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace Quantum.HelloWorld {
|
||||
open Microsoft.Quantum.Canon;
|
||||
open Microsoft.Quantum.Intrinsic;
|
||||
|
||||
|
||||
operation HelloWorld() : Unit {
|
||||
Message("Hello World");
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
namespace Quantum.HelloWorld
|
||||
{
|
||||
operation HelloWorld () : (String)
|
||||
{
|
||||
body
|
||||
{
|
||||
return ("Hello World");
|
||||
}
|
||||
}
|
||||
}
|
||||
1
q/quorum.quorum
Normal file
1
q/quorum.quorum
Normal file
@@ -0,0 +1 @@
|
||||
output "Hello World"
|
||||
Reference in New Issue
Block a user