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.
MeasurementBasis.matrix¶
- abstract MeasurementBasis.matrix(index, outcome, qubits=None)[source]¶
Return the POVM element for the basis index and outcome.
This POVM element is used by tomography fitters for reconstruction and should correspond to the target measurement effect for the corresponding measurement
circuit()
and outcome.- Parameters:
index (
Sequence
[int
]) – a list of subsystem basis indices.outcome (
int
) – the composite system measurement outcome.qubits (
Optional
[Sequence
[int
]]) – Optional, the physical qubit subsystems for the index. If None this will be set to(0, ..., N-1)
for a length N index.
- Return type:
ndarray
- Returns:
The POVM matrix for the specified index and qubits.