38,760
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 58: | Line 58: | ||
|contents= | |contents= | ||
#!/bin/bash | #!/bin/bash | ||
#SBATCH --account=def-someuser # | #SBATCH --account=def-someuser # Indiquez le nom de votre compte | ||
#SBATCH --time=00:15:00 # | #SBATCH --time=00:15:00 # Modifiez s'il y a lieu | ||
#SBATCH --cpus-per-task=1 # | #SBATCH --cpus-per-task=1 # Modifiez s'il y a lieu | ||
#SBATCH --mem-per-cpu=1G # | #SBATCH --mem-per-cpu=1G # Modifiez s'il y a lieu | ||
</div> | </div> | ||
<div class="mw-translate-fuzzy"> | |||
# Load modules dependencies. | # Load modules dependencies. | ||
module load StdEnv/2023 gcc python/3.11 | module load StdEnv/2023 gcc python/3.11 | ||
</div> | |||
<div class="mw-translate-fuzzy"> | |||
# Generate your virtual environment in $SLURM_TMPDIR. | # Generate your virtual environment in $SLURM_TMPDIR. | ||
virtualenv --no-download ${SLURM_TMPDIR}/env | virtualenv --no-download ${SLURM_TMPDIR}/env | ||
source ${SLURM_TMPDIR}/env/bin/activate | source ${SLURM_TMPDIR}/env/bin/activate | ||
</div> | |||
<div class="mw-translate-fuzzy"> | |||
# Install Pennylane and its dependencies. | # Install Pennylane and its dependencies. | ||
pip install --no-index --upgrade pip | pip install --no-index --upgrade pip | ||
pip install --no-index --requirement ~/pennylane_requirements.txt | pip install --no-index --requirement ~/pennylane_requirements.txt | ||
</div> | |||
<div lang="fr" dir="ltr" class="mw-content-ltr"> | <div lang="fr" dir="ltr" class="mw-content-ltr"> | ||
# | # Modifiez votre programme PennyLane. | ||
python pennylane_example.py | python pennylane_example.py | ||
}} | }} |