magnet_square
ΒΆ
Post-processing for magnetization square
magsq_core
ΒΆ
Post Processing - Magnetization Square - Core (qurry.process.magnet_square.magsq_core
)
- qurry.process.magnet_square.magsq_core.magnetic_square_core(shots: int, counts: list[dict[str, int]], num_qubits: int, backend: Literal['Cython', 'Rust', 'Python'] | str = 'Rust') tuple[float | float64, dict[int, float] | dict[int, float64], float] [source]ΒΆ
The core function of Magnetization square by Python.
- qurry.process.magnet_square.magsq_core.magsq_cell_py(idx: int, single_counts: dict[str, int], shots: int) tuple[int, float64] [source]ΒΆ
Calculate the magnitudes square cell
- qurry.process.magnet_square.magsq_core.magsq_cell_py_deprecated(idx: int, single_counts: dict[str, int], shots: int) tuple[int, float64] [source]ΒΆ
Calculate the magnitudes square cell
- qurry.process.magnet_square.magsq_core.magsq_cell_wrapper(arguments: tuple[int, dict[str, int], int]) tuple[int, float64] [source]ΒΆ
Wrapper for the magnetic square cell.
- Parameters:
arguments (tuple[int, dict[str, int], int, PostProcessingBackendLabel]) β The arguments for the magnetic square cell. - idx (int): Index of the cell (counts). - single_counts (dict[str, int]): Single counts of the cell. - shots (int): Shots of the experiment on quantum machine.
- Returns:
Index, one of magnitudes square.
- Return type:
- qurry.process.magnet_square.magsq_core.z_dir_magnetic_square_core(shots: int, single_counts: dict[str, int], num_qubits: int, backend: Literal['Cython', 'Rust', 'Python'] | str = 'Rust') tuple[float | float64, dict[int, float] | dict[int, float64], float] [source]ΒΆ
The core function of Z direction Magnetization square by Python.
magnet_square
ΒΆ
Post Processing - Magnetization Square - Magnetization Square
(qurry.process.magnet_square.magnet_square
)
- qurry.process.magnet_square.magnet_square.magnet_square(shots: int, counts: list[dict[str, int]], num_qubits: int, backend: Literal['Cython', 'Rust', 'Python'] | str = 'Rust', pbar: tqdm | None = None) MagnetSquare [source]ΒΆ
Calculate the magnet square.
- Parameters:
- Returns:
Magnetization Square.
- Return type:
- qurry.process.magnet_square.magnet_square.z_dir_magnet_square(shots: int, single_counts: dict[str, int], num_qubits: int, backend: Literal['Cython', 'Rust', 'Python'] | str = 'Rust', pbar: tqdm | None = None) MagnetSquare [source]ΒΆ
Calculate the magnet square for Z direction.
Signle counts is only working for Z direction.
- Parameters:
- Returns:
Magnetization Square.
- Return type: