Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QM driver in 0.1 fails to run rabi_length experiment #1029

Open
andrea-pasquale opened this issue Sep 5, 2024 · 2 comments
Open

QM driver in 0.1 fails to run rabi_length experiment #1029

andrea-pasquale opened this issue Sep 5, 2024 · 2 comments
Labels
bug Something isn't working qm

Comments

@andrea-pasquale
Copy link
Contributor

andrea-pasquale commented Sep 5, 2024

The following qibocal runcard

platform: qw11q
targets: [D1]

actions:

  - id: rabi
    operation: rabi_length_signal
    parameters:
        pulse_duration_start: 20
        pulse_duration_end: 40
        pulse_duration_step: 1
        pulse_amplitude: 0.06
        relaxation_time: 100_000
        nshots: 1024

fails with an error related to baking.

Error
[Qibo 0.2.10|INFO|2024-09-05 10:57:23]: Loading platform dummy
2024-09-05 10:57:24,433 - qm - INFO     - Starting session: 432b70c8-0470-4214-929d-7b51f5ac2ca4
2024-09-05 10:57:27,319 - qm - INFO     - Octave "octave2" Health check passed, current temperature 60
2024-09-05 10:57:28,053 - qm - INFO     - Octave "octave3" Health check passed, current temperature 57
2024-09-05 10:57:28,784 - qm - INFO     - Octave "octave4" Health check passed, current temperature 58
2024-09-05 10:57:29,604 - qm - INFO     - Octave "octave5" Health check passed, current temperature 59
2024-09-05 10:57:30,327 - qm - INFO     - Octave "octave6" Health check passed, current temperature 58
2024-09-05 10:57:30,327 - qm - INFO     - Performing health check
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con1. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con2. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con3. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con4. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con5. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con6. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con7. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con8. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con9. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:57:30,347 - qm - INFO     - Health check passed
Connected to: Rohde&Schwarz SGS100A (serial:1416.0505k02/114167, firmware:4.2.76.0-4.30.046.295) in 0.16s
Connected to: Rohde&Schwarz SGS100A (serial:1416.0505k02/114164, firmware:4.2.76.0-4.30.046.295) in 0.14s
Traceback (most recent call last):
  File "/nfs/users/andrea.pasquale/default/bin/qq", line 8, in <module>
    sys.exit(command())
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/cli/_base.py", line 75, in auto
    autocalibrate(runcard, folder, force, update)
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/cli/autocalibration.py", line 42, in autocalibrate
    history = runcard.run(
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/auto/runcard.py", line 63, in run
    instance.run_protocol(
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/auto/execute.py", line 131, in run_protocol
    completed = task.run(platform=self.platform, targets=self.targets, mode=mode)
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/auto/task.py", line 149, in run
    completed.data, completed.data_time = operation.acquisition(
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/auto/operation.py", line 42, in wrapper
    out = func(*args, **kwds)
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/protocols/rabi/length.py", line 88, in _acquisition
    results = platform.sweep(
  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/platform/platform.py", line 301, in sweep
    new_result = instrument.sweep(
  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/instruments/qm/controller.py", line 372, in sweep
    qmsequence, ro_pulses = self.create_sequence(qubits, sequence, sweepers)
  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/instruments/qm/controller.py", line 343, in create_sequence
    qmpulse.bake(self.config, durations=[pulse.duration])
  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/instruments/qm/sequence.py", line 165, in bake
    segment.add_op(self.operation, self.element, waveform)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/qualang_tools/bakery/bakery.py", line 778, in add_op
    raise ValueError("Element provided does not have any analog input")
ValueError: Element provided does not have any analog input
srun: error: fahid: task 0: Exited with exit code 1
(default) andrea.pasquale@saadiyat:/nfs/users/andrea.pasquale/qibocal(script_change_sweetspot)$ srun -p qw11q qq auto runcards/calibration_tutorial/rabi.yaml -o test_rabi_length -f --platform qw11q
[Qibo 0.2.10|INFO|2024-09-05 10:58:28]: Loading platform dummy
2024-09-05 10:58:29,456 - qm - INFO     - Starting session: 32efc96a-7ada-44d7-be02-dbc1355830e9
2024-09-05 10:58:32,029 - qm - INFO     - Octave "octave2" Health check passed, current temperature 60
2024-09-05 10:58:33,366 - qm - INFO     - Octave "octave3" Health check passed, current temperature 57
2024-09-05 10:58:34,106 - qm - INFO     - Octave "octave4" Health check passed, current temperature 58
2024-09-05 10:58:35,096 - qm - INFO     - Octave "octave5" Health check passed, current temperature 59
2024-09-05 10:58:35,817 - qm - INFO     - Octave "octave6" Health check passed, current temperature 58
2024-09-05 10:58:35,817 - qm - INFO     - Performing health check
2024-09-05 10:58:35,836 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con1. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con2. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con3. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con4. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con5. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con6. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con7. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con8. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - WARNING  - Health check warning: Inter-OPX connectivity issues in OPX: con9. Missing ports are: 12, 11, 10, 9. See QM-App for more info.
2024-09-05 10:58:35,837 - qm - INFO     - Health check passed
Connected to: Rohde&Schwarz SGS100A (serial:1416.0505k02/114167, firmware:4.2.76.0-4.30.046.295) in 0.18s
Connected to: Rohde&Schwarz SGS100A (serial:1416.0505k02/114164, firmware:4.2.76.0-4.30.046.295) in 0.14s
Traceback (most recent call last):
  File "/nfs/users/andrea.pasquale/default/bin/qq", line 8, in <module>
    sys.exit(command())
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/cli/_base.py", line 75, in auto
    autocalibrate(runcard, folder, force, update)
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/cli/autocalibration.py", line 42, in autocalibrate
    history = runcard.run(
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/auto/runcard.py", line 63, in run
    instance.run_protocol(
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/auto/execute.py", line 131, in run_protocol
    completed = task.run(platform=self.platform, targets=self.targets, mode=mode)
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/auto/task.py", line 149, in run
    completed.data, completed.data_time = operation.acquisition(
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/auto/operation.py", line 42, in wrapper
    out = func(*args, **kwds)
  File "/nfs/users/andrea.pasquale/qibocal/src/qibocal/protocols/rabi/length_signal.py", line 92, in _acquisition
    results = platform.sweep(
  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/platform/platform.py", line 301, in sweep
    new_result = instrument.sweep(
  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/instruments/qm/controller.py", line 372, in sweep
    qmsequence, ro_pulses = self.create_sequence(qubits, sequence, sweepers)
  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/instruments/qm/controller.py", line 343, in create_sequence
    qmpulse.bake(self.config, durations=[pulse.duration])
  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/instruments/qm/sequence.py", line 165, in bake
    segment.add_op(self.operation, self.element, waveform)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/qualang_tools/bakery/bakery.py", line 778, in add_op
    raise ValueError("Element provided does not have any analog input")
ValueError: Element provided does not have any analog input
srun: error: fahid: task 0: Exited with exit code 1

Is there something wrong with the parameters provided in the runcard?

@andrea-pasquale andrea-pasquale added bug Something isn't working qm labels Sep 5, 2024
@stavros11
Copy link
Member

Thanks for reporting, I’ll have a look. I am not sure if baking was properly implemented for drive pulses in 0.1.

In the meantime, this should work with the 0.2 branch using qiboteam/qibocal#809 and qiboteam/qibolab_platforms_qrc#153. I am just not sure if the Rabi length signal is updated in the qibocal branch, but the probabilities one should be.

@alecandido
Copy link
Member

Additional info: the relevant part of the error is just

  File "/nfs/users/andrea.pasquale/qibolab/src/qibolab/instruments/qm/sequence.py", line 165, in bake
    segment.add_op(self.operation, self.element, waveform)
  File "/nfs/users/andrea.pasquale/default/lib/python3.10/site-packages/qualang_tools/bakery/bakery.py", line 778, in add_op
    raise ValueError("Element provided does not have any analog input")
ValueError: Element provided does not have any analog input

and of course it is related to 0.1.

It seems it's getting a misconfigured element, if not a completely wrong one...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working qm
Projects
None yet
Development

No branches or pull requests

3 participants