29 lines
498 B
YAML
29 lines
498 B
YAML
id: "qsharp"
|
|
aliases:
|
|
- "q"
|
|
- "qs"
|
|
name: "Q#"
|
|
|
|
install:
|
|
apt:
|
|
- $(grep-aptavail -eF Package "^dotnet-sdk-[0-9.]+$" -s Package -n | sort -Vr | head -n1)
|
|
|
|
setup: |
|
|
cp -R /opt/qsharp/dotnet ./.dotnet && cp -R /opt/qsharp/project-template/* ./
|
|
|
|
main: "Main.qs"
|
|
template: |
|
|
namespace main {
|
|
|
|
open Microsoft.Quantum.Canon;
|
|
open Microsoft.Quantum.Intrinsic;
|
|
|
|
@EntryPoint()
|
|
operation Main() : Unit {
|
|
Message("Hello, world!");
|
|
}
|
|
}
|
|
|
|
run: |
|
|
dotnet run
|