added qsharp
This commit is contained in:
parent
cd59bd06fa
commit
9f0d2abe53
@ -388,6 +388,7 @@ Meet [FizzBuzz](https://github.com/zenware/FizzBuzz), the evolution of [hello-wo
|
||||
* [Q](q/q.q)
|
||||
* [Qbasic](q/Qbasic.bas)
|
||||
* [Qore](q/qore.q)
|
||||
* [Qsharp](q/qsharp)
|
||||
* [Qu](q/qu.qu)
|
||||
* [Quakec](q/QuakeC.qc)
|
||||
* [Quartzcomposer](q/QuartzComposer.qtz)
|
||||
|
19
q/qsharp/Driver.cs
Normal file
19
q/qsharp/Driver.cs
Normal file
@ -0,0 +1,19 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
10
q/qsharp/qsharp.qs
Normal file
10
q/qsharp/qsharp.qs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Quantum.HelloWorld
|
||||
{
|
||||
operation HelloWorld () : (String)
|
||||
{
|
||||
body
|
||||
{
|
||||
return ("Hello, World!");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user