Added Quorum and updated Qsharp (#771)
This commit is contained in:
@@ -8,7 +8,7 @@ Thanks to everyone who continues to contribute; new languages are created every
|
|||||||
Make sure to see [CONTRIBUTING.md](/CONTRIBUTING.md) for instructions on contributing to the project!
|
Make sure to see [CONTRIBUTING.md](/CONTRIBUTING.md) for instructions on contributing to the project!
|
||||||
|
|
||||||
<!--Languages start-->
|
<!--Languages start-->
|
||||||
## Languages (664 total)
|
## Languages (667 total)
|
||||||
|
|
||||||
* [05Ab1E](%23/05AB1E)
|
* [05Ab1E](%23/05AB1E)
|
||||||
* [0815](%23/0815.0815)
|
* [0815](%23/0815.0815)
|
||||||
@@ -496,10 +496,12 @@ Make sure to see [CONTRIBUTING.md](/CONTRIBUTING.md) for instructions on contrib
|
|||||||
* [Qbasic](q/Qbasic.bas)
|
* [Qbasic](q/Qbasic.bas)
|
||||||
* [Qcl](q/qcl.qcl)
|
* [Qcl](q/qcl.qcl)
|
||||||
* [Qore](q/qore.q)
|
* [Qore](q/qore.q)
|
||||||
|
* [Qsharp](q/qsharp.qs)
|
||||||
* [Qu](q/qu.qu)
|
* [Qu](q/qu.qu)
|
||||||
* [Quakec](q/QuakeC.qc)
|
* [Quakec](q/QuakeC.qc)
|
||||||
* [Quartzcomposer](q/QuartzComposer.qtz)
|
* [Quartzcomposer](q/QuartzComposer.qtz)
|
||||||
* [Qugord](q/qugord.qugord)
|
* [Qugord](q/qugord.qugord)
|
||||||
|
* [Quorum](q/quorum.quorum)
|
||||||
* [Qwerty](q/qwerty.qwerty)
|
* [Qwerty](q/qwerty.qwerty)
|
||||||
* [R](r/R.R)
|
* [R](r/R.R)
|
||||||
* [Racket](r/racket.rkt)
|
* [Racket](r/racket.rkt)
|
||||||
|
|||||||
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