bloqade.gemini.decoding.tomography.TomographyResult
← Module overview
class
method
source
classTomographyResult¶source
bloqade.gemini.decoding.tomography.TomographyResult
Point-estimate single-qubit tomography result.
class TomographyResult(shots_by_basis: Mapping[str, np.ndarray])Parameters
| Name | Type | Description |
|---|---|---|
shots_by_basis | Mapping[str, np.ndarray] | A mapping of each basis to an array of shots (0/1's) in each basis. |
Attributes
| Name | Type | Description |
|---|---|---|
density_matrix | np.ndarray |
methodfidelity_bloch¶source
bloqade.gemini.decoding.tomography.TomographyResult.fidelity_bloch
Signature
def fidelity_bloch(target_bloch: np.ndarray | Sequence[float], tol: float = 1e-10) -> floatReturn the fidelity to a target state from its Bloch vector.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
target_bloch | np.ndarray | Sequence[float] | required | |
tol | float | 1e-10 |
Returns
float