quscope.image_processing.quantum_segmentation
Quantum image segmentation using Grover’s algorithm and amplitude amplification.
This module provides quantum algorithms for image segmentation tasks, including threshold-based, edge-based, and region-based segmentation. It implements Grover’s algorithm with custom oracles for different segmentation criteria and provides utilities for result interpretation and visualization.
Functions
|
Apply Grover's algorithm for image segmentation. |
|
Calculate the optimal number of Grover iterations. |
|
Create a custom oracle using a user-defined function. |
|
Create an oracle for edge-based segmentation. |
|
Create an oracle that marks specific target patterns. |
|
Create an oracle for region-based segmentation. |
|
Create an oracle for threshold-based segmentation. |
|
Interpret the results of quantum image segmentation. |
|
Optimize a quantum circuit for better performance. |
|
Segment an image using quantum algorithms. |
Classes
|
Enumeration of supported segmentation methods. |
|
Class to store and analyze segmentation results. |
Exceptions
|
Exception raised when oracle construction fails. |
|
Base exception for segmentation errors. |