Note
This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.
MultiStateDiscrimination¶
- class MultiStateDiscrimination(physical_qubits, backend=None, n_states=None, schedules=None)[source]¶
An experiment that discriminates between the first
energy states.Overview
The experiment creates
circuits that prepare, respectively, the energy states . For, e.g., the circuits are of the formCircuit preparing \(|0\rangle\) ░ ┌─┐ q: ─░─┤M├ ░ └╥┘ meas: ════╩═ ... Circuit preparing \(|3\rangle\) ┌───┐┌─────┐┌─────┐ ░ ┌─┐ q: ┤ X ├┤ x12 ├┤ x23 ├─░─┤M├ └───┘└─────┘└─────┘ ░ └╥┘ meas: ═══════════════════════╩═
References
Analysis class reference
MultiStateDiscriminationAnalysis
Experiment options
These options can be set by the
set_experiment_options()
method.- Options
Defined in the class
MultiStateDiscrimination
:n_states (int)
Default value:2
The number of states to discriminate.schedules (dict)
Default value:None
A dictionary of the schedules for the gates in the experiment. Each key is a gate name of the formxii+1
which should implement an x-rotation between leveli
andi+1
.
Defined in the class
BaseExperiment
:max_circuits (Optional[int])
Default value:None
The maximum number of circuits per job when running an experiment on a backend.
Initialization
Setup an experiment to prepare different energy states on a given qubit.
- Parameters:
physical_qubits (
Sequence
[int
]) – A single-element sequence containing the qubit on which to run the experiment.backend (
Optional
[Backend
]) – Optional, the backend to run the experiment on.n_states (
Optional
[int
]) – The number of energy levels to prepare.schedules (
Optional
[Dict
[str
,ScheduleBlock
]]) – The schedules of the x gates between neighboring energy levels.
Attributes
Return the analysis instance for the experiment
Return the backend for the experiment
Return the options for the experiment.
Return experiment type.
Return the number of qubits for the experiment.
Return the device qubits for the experiment.
Return options values for the experiment
run()
method.Return the transpiler options for the
run()
method.Methods
Create the circuits for the multi state discrimination experiment.
Return the config dataclass for this experiment
Return a copy of the experiment
Initialize an experiment from experiment config
MultiStateDiscrimination.run
([backend, ...])Run an experiment and perform analysis.
Set the experiment options.
Set options values for the experiment
run()
method.Set the transpiler options for
run()
method.