Skip to content

Commit

Permalink
Merge branch 'main' into new_tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolfocarobene committed Nov 14, 2023
2 parents 118b473 + ab92b3a commit c7a2bbe
Show file tree
Hide file tree
Showing 9 changed files with 1,263 additions and 796 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ ci:
autofix_prs: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- repo: https://github.com/psf/black
rev: 23.9.1
rev: 23.11.0
hooks:
- id: black
args:
Expand All @@ -20,7 +20,7 @@ repos:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.15.0
hooks:
- id: pyupgrade
- repo: https://github.com/dhruvmanila/remove-print-statements
Expand All @@ -29,7 +29,7 @@ repos:
- id: remove-print-statements
args: ['--verbose']
- repo: https://github.com/hadialqattan/pycln
rev: v2.2.2
rev: v2.3.0
hooks:
- id: pycln
args:
Expand Down
19 changes: 19 additions & 0 deletions extras/qibosoq_paper_runcards/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Qibosoq paper runcards

In this folder, we have stored the runcards used for the experiments presented in the Qibosoq paper.

For the timing experiments, we used the following runcards:
- `routines_benchmarks.yml`
- `scaling_benchmarks.yml`

These experiments were conducted on a platform analogous to the one described in `my_platform.yml`.

On the other hand, the calibration experiments were performed with the platform in `experiments_platform_runcard.yml`, but are exactly reproducible only with the same hardware.

These runcards are compatible and were executed with the following software versions:

| Software | Version |
|-----------|---------|
| Qibosoq | 0.0.4 |
| Qibolab | 0.1.0 |
| Qibocal | 0.0.3 |
42 changes: 42 additions & 0 deletions extras/qibosoq_paper_runcards/calibration_experiments.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# executed with `qq auto calibration_experiments.yml -o output_folder`
platform: dummy # set to platform runcard

# nshots : 4096 in platform runcard

qubits: [0]
update: False

# T1, T2_echo, single_shot, qubit_flux_dependence
actions:

- id: t1
priority: 0
operation: t1
parameters:
delay_before_readout_start: 0
delay_before_readout_end: 80_000
delay_before_readout_step: 400

- id: spin_echo
priority: 0
operation: spin_echo
parameters:
delay_between_pulses_start: 0
delay_between_pulses_end: 80_000
delay_between_pulses_step: 800

- id: single shot classification
priority: 0
operation: single_shot_classification
parameters:
nshots: 4096

- id: qubit flux dependence
priority: 0
operation: qubit_flux
parameters:
freq_width: 25_000_000
freq_step: 250_000
bias_width: 0.12
bias_step: 0.001
drive_amplitude: 0.1
50 changes: 50 additions & 0 deletions extras/qibosoq_paper_runcards/experiments_platform_runcard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
nqubits: 1
description: 1-qubit controlled by a Xilinx ZCU111 board

qubits: [0]

settings:
sampling_rate: 6_144_000_000
relaxation_time: 100_000
nshots: 1000


topology: []


native_gates:
single_qubit:
0: # D1
RX:
duration: 43
amplitude: 0.02
frequency: 5_755_427_950
shape: Gaussian(3)
type: qd # qubit drive
start: 0
phase: 0
MZ:
duration: 1000
amplitude: 0.1
frequency: 6_953_000_000
shape: Rectangular()
type: ro # readout
start: 0
phase: 0



characterization: #TODO No characterization yet
single_qubit:
0:
readout_frequency: 6_953_000_000
drive_frequency: 5_755_427_950
sweetspot: -0.113
anharmonicity: 0
Ec: 0
Ej: 0
g: 0
T1: 0.0
T2: 0.0
threshold: 0.0
iq_angle: 0.0
45 changes: 45 additions & 0 deletions extras/qibosoq_paper_runcards/my_platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
nqubits: 1
description: Dummy platform for benchmarks

settings:
nshots: 4096
relaxation_time: 300_000

qubits: [0]

topology: []

native_gates:
single_qubit:
0: # qubit number
RX:
duration: 40
amplitude: 0.001
frequency: 4_098_000_000
shape: Gaussian(5)
type: qd
start: 0
phase: 0
MZ:
duration: 2000
amplitude: 0.001
frequency: 5_000_000_000
shape: Rectangular()
type: ro
start: 0
phase: 0

characterization:
single_qubit:
0:
readout_frequency: 0
resonator_polycoef_flux: []
drive_frequency: 0
T1: 0.0
T2: 0.0
sweetspot: 0
mean_gnd_states: 0+0j
mean_exc_states: 0*0j
threshold: 0
iq_angle: 0
anharmonicity: 0
109 changes: 109 additions & 0 deletions extras/qibosoq_paper_runcards/routines_benchmarks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# executed with `qq auto routines_benchmarks.yml -o output_folder`
platform: my_platform

# nshots : 4096 in platform runcard

qubits: [0]
update: False

actions:

- id: resonator spectroscopy high power
priority: 0
operation: resonator_spectroscopy
main: resonator punchout
parameters:
freq_width: 10_000_000
freq_step: 500_000
amplitude: 0.4
power_level: high
relaxation_time: 5_000

- id: resonator punchout
priority: 10
operation: resonator_punchout
main: resonator spectroscopy low power
parameters:
freq_width: 20_000_000
freq_step: 2_000_000
min_amp_factor: 0.02
max_amp_factor: 2.4
step_amp_factor: 0.1
relaxation_time: 5_000

- id: resonator spectroscopy low power
priority: 20
operation: resonator_spectroscopy
main: qubit spectroscopy
parameters:
freq_width: 100_000_000
freq_step: 1_000_000
amplitude: 0.5
power_level: low
relaxation_time: 5_000

- id: qubit spectroscopy
priority: 30
operation: qubit_spectroscopy
main: rabi amplitude
parameters:
drive_amplitude: 0.1
drive_duration: 5000
freq_width: 30_000_000
freq_step: 100_000
relaxation_time: 5_000

- id: rabi amplitude
priority: 40
operation: rabi_amplitude
main: ramsey detuned
parameters:
min_amp_factor: 0.0
max_amp_factor: 1.5
step_amp_factor: 0.02
pulse_length: 40

- id: ramsey detuned
priority: 50
operation: ramsey
main: t1
parameters:
delay_between_pulses_start: 0
delay_between_pulses_end: 30_000
delay_between_pulses_step: 1_000
n_osc: 10

- id: t1
priority: 60
operation: t1
main: ramsey
parameters:
delay_before_readout_start: 0
delay_before_readout_end: 200_000
delay_before_readout_step: 5_000

- id: ramsey
priority: 70
operation: ramsey
main: single shot classification
parameters:
delay_between_pulses_start: 16
delay_between_pulses_end: 65_000
delay_between_pulses_step: 2_000
n_osc: 0

- id: single shot classification
priority: 80
main: standard rb
operation: single_shot_classification
parameters:
nshots: 5_000

- id: standard rb
priority: 90
operation: standard_rb
parameters:
depths: [10, 20, 30, 40]
niter: 50
nshots: 128
seed: 420
Loading

0 comments on commit c7a2bbe

Please sign in to comment.