Skip to content

Commit

Permalink
Merge pull request #326 from qiboteam/multiqubit_dummy
Browse files Browse the repository at this point in the history
Add multiqubit dummy platform
  • Loading branch information
scarrazza authored Mar 17, 2023
2 parents b4fa36e + 2c99181 commit 7a73ac7
Show file tree
Hide file tree
Showing 2 changed files with 265 additions and 23 deletions.
9 changes: 5 additions & 4 deletions src/qibolab/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def create_dummy(runcard):
"""Create a single qubit platform using the dummy instrument.
"""Create a dummy platform using the dummy instrument.
Useful for testing.
"""
Expand All @@ -24,9 +24,10 @@ def create_dummy(runcard):
platform = DesignPlatform("dummy", design, runcard)

# map channels to qubits
platform.qubits[0].readout = channels["readout"]
platform.qubits[0].drive = channels["drive"]
platform.qubits[0].flux = channels["flux"]
for qubit in platform.qubits:
platform.qubits[qubit].readout = channels["readout"]
platform.qubits[qubit].drive = channels["drive"]
platform.qubits[qubit].flux = channels["flux"]

return platform

Expand Down
279 changes: 260 additions & 19 deletions src/qibolab/runcards/dummy.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,279 @@
nqubits: 1
description: Dummy platform runcard to use for testing.
nqubits: 5
description: QuantWare 5-qubit device.

qubits: [0]
qubits: [0, 1, 2, 3, 4]

settings:
sampling_rate: 1_000_000_000
sampling_rate: 1000000000
repetition_duration: 0

topology: null
resonator_type: 2D

topology: # qubit - qubit connections
- [ 1, 0, 1, 0, 0, 0]
- [ 0, 1, 1, 0, 0, 0]
- [ 1, 1, 1, 1, 1, 0]
- [ 0, 0, 1, 1, 0, 0]
- [ 0, 0, 1, 0, 1, 0]

native_gates:
single_qubit:
0: # qubit number
RX:
duration: 71
amplitude: 0.9
frequency: 200_000_000
duration: 40
amplitude: 0.005
frequency: 4_700_000_000
shape: Gaussian(5)
type: qd # qubit drive
start: 0
phase: 0
MZ:
duration: 1000
amplitude: 0.0025
frequency: 7_226_500_000
shape: Rectangular()
type: ro # readout
start: 0
phase: 0
1: # qubit number
RX:
duration: 40
amplitude: 0.0484
frequency: 4_855_663_000
#frequency: 4_718_515_000 # 02 transition (more likely)
shape: Drag(5, -0.02)
type: qd # qubit drive
start: 0
phase: 0
MZ:
duration: 620
amplitude: 0.003575
frequency: 7_453_265_000
shape: Rectangular()
type: ro # readout
start: 0
phase: 0
2: # qubit number
RX:
duration: 40
amplitude: 0.05682
frequency: 5_800_563_000
#frequency: 5_661_400_000 # 02 transition
shape: Drag(5, -0.04) #Gaussian(5)
type: qd # qubit drive
start: 0
phase: 0
MZ:
duration: 960
amplitude: 0.00325
frequency: 7_655_107_000
shape: Rectangular()
type: ro # readout
start: 0
phase: 0
3: # qubit number
RX:
duration: 40
amplitude: 0.138
frequency: 6_760_922_000
#frequency: 6_628_822_000 # 02 transition
shape: Gaussian(5)
type: qd # qubit drive
start: 0
phase: 0
MZ:
duration: 960
amplitude: 0.004225
frequency: 7_802_191_000
shape: Rectangular()
type: ro # readout
start: 0
phase: 0
4: # qubit number
RX:
duration: 40
amplitude: 0.0617
frequency: 6_585_053_000
shape: Drag(5, 0.0) #Gaussian(5)
type: qd # qubit drive
start: 0
phase: 0
MZ:
duration: 2000
amplitude: 0.9
frequency: 7824855425
duration: 640
amplitude: 0.0039
frequency: 8_057_668_000
shape: Rectangular()
type: ro # readout
start: 0
phase: 0
5: # qubit number
RX:
duration: 40
amplitude: 0.001
frequency: 6.3925e+9
shape: Gaussian(5)
type: qd # qubit drive
start: 0
phase: 0
MZ:
duration: 1000
amplitude: 0.0025
frequency: 7_008_300_000
shape: Rectangular()
type: ro # readout
start: 0
phase: 0

two_qubit:
2-1:
CZ:
- duration: 30
amplitude: 0.055
shape: Rectangular()
qubit: 2
relative_start: 0
type: qf
- type: virtual_z
phase: -1.5707963267948966
qubit: 1
- type: virtual_z
phase: -1.5707963267948966
qubit: 2
3-2:
CZ:
- duration: 32
amplitude: -0.0513
shape: Rectangular()
qubit: 3
relative_start: 0
type: qf
- type: virtual_z
phase: -1.5707963267948966
qubit: 2
- type: virtual_z
phase: -1.5707963267948966
qubit: 3


characterization:
single_qubit:
0:
readout_frequency: 7824855425
drive_frequency: 5082441303
T1: 21160
T2: 17214
state0_voltage: 847
state1_voltage: 251
mean_gnd_states: (-0.0008313786783245074+0.00044815319987281076j)
mean_exc_states: (-0.00022773024569023835+0.0003203066357136082j)
readout_frequency: 0.0
drive_frequency: 0.0
T1: 0.0
T2: 0.0
sweetspot: 0.0
filter: {}
# parameters for single shot classification
threshold: 0.0
iq_angle: 0.0
# required for integration weights (not sure if it should be here)
rotation_angle: 0.0
# required for mixers (not sure if it should be here)
mixer_drive_g: 0.0
mixer_drive_phi: 0.0
mixer_readout_g: 0.0
mixer_readout_phi: 0.0
1:
readout_frequency: 7_453_265_000
drive_frequency: 4_855_663_000
T1: 0.0
T2: 0.0
sweetspot: -0.047
filter: {}
# parameters for single shot classification
threshold: 0.00028502261712637096
iq_angle: 1.283105298787488
# required for integration weights (not sure if it should be here)
rotation_angle: 63.214
# Software classifier
# classifier:
# type: "scikit"
# model: "qw5q_gold/RBF_SVM_1.pkl"
# required for mixers (not sure if it should be here)
mixer_drive_g: 0.0
mixer_drive_phi: 0.0
mixer_readout_g: 0.0
mixer_readout_phi: 0.0
2:
readout_frequency: 7_655_107_000
drive_frequency: 5_799_876_000
T1: 0.0
T2: 0.0
sweetspot: -0.045
filter:
feedforward: [1.0684635881381783, -1.0163217174522334]
feedback: [0.947858129314055]
# parameters for single shot classification
threshold: 0.0002694329123116206
iq_angle: 4.912447775569025
# Software classifier
# classifier:
# type: "scikit"
# model: "qw5q_gold/RBF_SVM_2.pkl"
# required for integration weights (not sure if it should be here)
rotation_angle: 0.0
# required for mixers (not sure if it should be here)
mixer_drive_g: 0.0
mixer_drive_phi: 0.0
mixer_readout_g: 0.0
mixer_readout_phi: 0.0
3:
readout_frequency: 7_802_391_000
drive_frequency: 6_760_700_000
T1: 0.0
T2: 0.0
sweetspot: 0.034
filter: {}
# parameters for single shot classification
threshold: 0.0003363427381347193
iq_angle: 1.6124890998581591
# required for integration weights (not sure if it should be here)
rotation_angle: 0.0
# Software classifier
# classifier:
# type: "scikit"
# model: "qw5q_gold/RBF_SVM_3.pkl"
# required for mixers (not sure if it should be here)
mixer_drive_g: 0.0
mixer_drive_phi: 0.0
mixer_readout_g: 0.0
mixer_readout_phi: 0.0
4:
readout_frequency: 8_057_668_000
drive_frequency: 6_585_053_000
T1: 0.0
T2: 0.0
sweetspot: -0.057
filter: {}
# parameters for single shot classification
threshold: 0.00013079660165463033
iq_angle: 5.6303684840135
# required for integration weights (not sure if it should be here)
rotation_angle: 0.0
# Software classifier
# classifier:
# type: "scikit"
# model: "qw5q_gold/RBF_SVM_4.pkl"
# required for mixers (not sure if it should be here)
mixer_drive_g: 0.0
mixer_drive_phi: 0.0
mixer_readout_g: 0.0
mixer_readout_phi: 0.0
5:
readout_frequency: 0.0
drive_frequency: 0.0
T1: 0.0
T2: 0.0
sweetspot: 0.0
filter: {}
# parameters for single shot classification
threshold: 0.0
iq_angle: 0.0
# required for integration weights (not sure if it should be here)
rotation_angle: 0.0
# required for mixers (not sure if it should be here)
mixer_drive_g: 0.0
mixer_drive_phi: 0.0
mixer_readout_g: 0.0
mixer_readout_phi: 0.0

0 comments on commit 7a73ac7

Please sign in to comment.