Hyppää sisältöön

Docs CSC now features an automatic Finnish translation. Click here for more information.

Warning!

Puhti and Mahti are being decommissioned in stages, and their storage areas will become fully unavailable from 15 October 2026. Clean up unnecessary files and move any data you need to keep by 31 August 2026. See the Roihu data migration guide for instructions on transferring your data to Roihu.

Puhti computing services have been decommissioned and no new jobs are accepted or executed on its compute nodes. Puhti login nodes and storage services are planned to remain available until 15 October 2026.

Cirq-on-iqm

Cirq on IQM on avoimen lähdekoodin cirq-sovitin IQM:n kvanttitietokoneille. Se on asennettu nimellä fiqci-vtt-cirq LUMIin. Sitä käytetään kvanttipiirien ajamiseen kvanttitietokoneilla.

Saatavuus

Tällä hetkellä tuetut cirq-on-iqm -versiot:

Module LUMI Notes
fiqci-vtt-cirq/18.0 X Oletusversio. Tukee Q50:tä ja Q20:tä

Kaikki moduulit perustuvat Tykkyyn ja käyttävät LUMI-container-wrapperia. Tarjolla on wrapper-skriptit, joten yleisten komentojen kuten python, python3, pip ja pip3 pitäisi toimia normaalisti. Lisätietoja on kohdassa LUMI container wrapper.

Moduuli sisältää Python-paketteja, joita käytetään usein cirqin kanssa, kuten matplotlib, numpy ja jupyterlab.

Lisenssi

cirq-on-iqm on lisensoitu Apache License 2.0 -lisenssillä.

Käyttö

Jos haluat käyttää fiqci-vtt-cirq-moduulia LUMIssa, alusta se komennolla:

module use /appl/local/quantum/modulefiles

or 

module load Local-quantum

ja sitten

module load fiqci-vtt-cirq

Tämä komento näyttää myös, miten fiqci-vtt-cirq ladataan:

module avail fiqci-vtt-cirq

Esimerkkieräajo

Esimerkkieräajoskripti kvanttityön ajamiseen:

#!/bin/bash -l

#SBATCH --job-name=quantumjob     # Job name
#SBATCH --output=quantumjob.o%j   # Name of stdout output file
#SBATCH --error=quantumjob.e%j    # Name of stderr error file
#SBATCH --partition=q_fiqci     # Partition (queue) name
#SBATCH --ntasks=1              # One task (process)
#SBATCH --cpus-per-task=1       # Number of cores (threads)
#SBATCH --mem-per-cpu=1G        # Memory allocation
#SBATCH --time=00:15:00         # Run time (hh:mm:ss)
#SBATCH --account=project_xxx   # Project for billing

module use /appl/local/quantum/modulefiles
module load fiqci-vtt-cirq
export DEVICES=("radiance20")
source $RUN_SETUP
python -u quantum_job.py
#!/bin/bash -l

#SBATCH --job-name=quantumjob     # Job name
#SBATCH --output=quantumjob.o%j   # Name of stdout output file
#SBATCH --error=quantumjob.e%j    # Name of stderr error file
#SBATCH --partition=q_fiqci     # Partition (queue) name
#SBATCH --ntasks=1              # One task (process)
#SBATCH --cpus-per-task=1       # Number of cores (threads)
#SBATCH --mem-per-cpu=1G        # Memory allocation
#SBATCH --time=00:15:00         # Run time (hh:mm:ss)
#SBATCH --account=project_xxx   # Project for billing

module use /appl/local/quantum/modulefiles
module load fiqci-vtt-cirq
export DEVICES=("Q50")
source $RUN_SETUP
python -u quantum_job.py

Lähetä skripti komennolla sbatch <script_name>.sh.

Lisätietoja

Suomenkielinen tekoälykäännös

Sisällössä voi esiintyä virheellistä tietoa tekoälykäännöksestä johtuen.

Klikkaa tästä antaaksesi palautetta