Services d'informatique quantique: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 14: Line 14:


== Comment démarrer avec MonarQ ==
== Comment démarrer avec MonarQ ==
Les instructions de connection à MonarQ apparaitront ici lorsque disponible
Des détails seront fournis lorsqu'une connexion à MonarQ sera disponible


== Using the Snowflake Quantum Simulator at Calcul Québec ==
== Simulateur d'un ordinateur quantique avec Snowflake ==
The [https://github.com/anyonlabs/Snowflake.jl Snowflake] quantum simulator can be accessed on Béluga and Narval. First, the [https://julialang.org/ Julia] programming language must be loaded with the command
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>
Followed by the command to load the Julia interface and import the Snowflake library
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.
cc_staff
135

edits

Navigation menu