cc_staff
135
edits
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
== Comment démarrer avec MonarQ == | == Comment démarrer avec MonarQ == | ||
Des détails seront fournis lorsqu'une connexion à MonarQ sera disponible | |||
== | == Simulateur d'un ordinateur quantique avec Snowflake == | ||
Le simulateur d'ordinateur quantique avec [https://github.com/anyonlabs/Snowflake.jl Snowflake] est accessible sur tous les grappes de l'Alliance. Le langage de programmation [https://julialang.org/ Julia] doit être chargé avant d'avoir accès à Snowflake avec la commande: | |||
<includeonly> <div class="floatright"> [[File:Question.png|40px|link=https://explainshell.com/explain?cmd={{urlencode:{{{1}}} }}]] </div> <div class="command">{{#tag:syntaxhighlight|{{{prompt|[username@narval ~]$}}} {{{1}}}{{{result|}}}|lang={{{lang|bash}}}}}</div></includeonly><noinclude> | <includeonly> <div class="floatright"> [[File:Question.png|40px|link=https://explainshell.com/explain?cmd={{urlencode:{{{1}}} }}]] </div> <div class="command">{{#tag:syntaxhighlight|{{{prompt|[username@narval ~]$}}} {{{1}}}{{{result|}}}|lang={{{lang|bash}}}}}</div></includeonly><noinclude> | ||
{{Command|module load julia | {{Command|module load julia | ||
|result=}} | |result=}} | ||
</noinclude> | </noinclude> | ||
Ensuite, l'interface de programmation Julia est appelée et la bibliothèque quantique de Snowflake chargée avec les commandes | |||
<includeonly> <div class="floatright"> [[File:Question.png|40px|link=https://explainshell.com/explain?cmd={{urlencode:{{{1}}} }}]] </div> <div class="command">{{#tag:syntaxhighlight|{{{prompt|[username@narval ~]$}}} {{{1}}}{{{result|}}}|lang={{{lang|bash}}}}}</div></includeonly><noinclude> | <includeonly> <div class="floatright"> [[File:Question.png|40px|link=https://explainshell.com/explain?cmd={{urlencode:{{{1}}} }}]] </div> <div class="command">{{#tag:syntaxhighlight|{{{prompt|[username@narval ~]$}}} {{{1}}}{{{result|}}}|lang={{{lang|bash}}}}}</div></includeonly><noinclude> | ||
{{Command|julia | {{Command|julia | ||
|result=julia> import Pkg | |result=julia> import Pkg | ||
julia> Pkg.add(url="https://github.com/anyonlabs/Snowflake.jl", rev="main")}} | julia> Pkg.add(url="https://github.com/anyonlabs/Snowflake.jl", rev="main") | ||
julia> using Snowflake}} | |||
</noinclude> | </noinclude> | ||
La bibliothèque quantique Snowflake prendra quelques minutes à installer. | |||
The Snowflake library will take a few minutes to install. Once it is installed, the commands as detailed in the [https://anyonlabs.github.io/Snowflake.jl/dev/ Snowflake documentation] can be used. The Snowflake quantum simulator is accessed by using the keyword [https://anyonlabs.github.io/Snowflake.jl/dev/library.html#Snowflake.simulate simulate] after constructing the desired quantum circuit. | The Snowflake library will take a few minutes to install. Once it is installed, the commands as detailed in the [https://anyonlabs.github.io/Snowflake.jl/dev/ Snowflake documentation] can be used. The Snowflake quantum simulator is accessed by using the keyword [https://anyonlabs.github.io/Snowflake.jl/dev/library.html#Snowflake.simulate simulate] after constructing the desired quantum circuit. |