laboneq_applications.contrib.experiments.time_rabi_chevron
¶
This module defines the time rabi chevron experiment.
In this experiment, we sweep the frequency and the amplitude of the drive pulse.
The time_rabi_chevron experiment has the following pulse sequence:
qb --- [ prep transition ] --- [ qop (swept frequency, swept length)]
--- [ measure ]
If multiple qubits are passed to the run
workflow, the above pulses are applied
in parallel on all the qubits.
create_experiment(qpu, qubits, frequencies, lengths, options=None)
¶
Creates a Qubit Spectroscopy Experiment.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qpu |
QPU
|
The qpu consisting of the original qubits and quantum operations. |
required |
qubits |
Qubits
|
The qubits to run the experiments on. May be either a single qubit or a list of qubits. |
required |
frequencies |
QubitSweepPoints
|
The qubit frequencies to sweep over for the qubit drive pulse. If |
required |
lengths |
QubitSweepPoints
|
The lengths to sweep over for each qubit. It must be a list of numbers or arrays or a list of lists of numbers or arrays. |
required |
options |
TuneupExperimentOptions | None
|
The options for building the experiment. See [TuneupExperimentOptions] and [BaseExperimentOptions] for accepted options. Overwrites the options from [TuneupExperimentOptions] and [BaseExperimentOptions]. |
None
|
Returns:
Name | Type | Description |
---|---|---|
experiment |
Experiment
|
The generated LabOne Q experiment instance to be compiled and executed. |
Raises:
Type | Description |
---|---|
ValueError
|
If the qubits, amplitudes, and frequencies are not of the same length. |
ValueError
|
If amplitudes and frequencies are not a list of numbers when a single qubit is passed. |
ValueError
|
If frequencies is not a list of lists of numbers. If amplitudes is not None or a list of lists of numbers. |
Example
options = TuneupExperimentOptions()
options.count = 10
qpu = QPU(
qubits=[TunableTransmonQubit("q0"), TunableTransmonQubit("q1")],
quantum_operations=TunableTransmonOperations(),
)
temp_qubits = qpu.copy_qubits()
create_experiment(
qpu=qpu,
qubits=temp_qubits,
frequencies = [
np.linspace(5.8e9, 6.2e9, 101),
np.linspace(0.8e9, 1.2e9, 101)
],
lengths=[[0.1e-6, 0.5e-6, 1e-6], [0.1e-6, 0.5e-6, 1e-6]],
options=options,
)
experiment_workflow(session, qpu, qubits, frequencies, lengths, options=None)
¶
The Qubit Spectroscopy Workflow.
The workflow consists of the following steps:
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session |
Session
|
The connected session to use for running the experiment. |
required |
qpu |
QPU
|
The qpu consisting of the original qubits and quantum operations. |
required |
qubits |
Qubits
|
The qubits to run the experiments on. May be either a single qubit or a list of qubits. |
required |
frequencies |
QubitSweepPoints
|
The qubit frequencies to sweep over for the qubit drive pulse. If |
required |
lengths |
QubitSweepPoints
|
The lengths to sweep over for each qubit drive pulse. |
required |
options |
TuneUpWorkflowOptions | None
|
The options for building the workflow. In addition to options from [WorkflowOptions], the following custom options are supported: - create_experiment: The options for creating the experiment. |
None
|
Returns:
Name | Type | Description |
---|---|---|
result |
None
|
The result of the workflow. |
Example
options = experiment_workflow.options()
options.count(10)
qpu = QPU(
qubits=[TunableTransmonQubit("q0"), TunableTransmonQubit("q1")],
quantum_operations=TunableTransmonOperations(),
)
temp_qubits = qpu.copy_qubits()
result = experiment_workflow(
session=session,
qpu=qpu,
qubits=temp_qubits,
frequencies = [
np.linspace(5.8e9, 6.2e9, 101),
np.linspace(0.8e9, 1.2e9, 101)
],
lengths=[[0.1e-6, 0.5e-6, 1e-6], [0.1e-6, 0.5e-6, 1e-6]],
options=options,
).run()