Releases: gltonic/frqi_neqr_module
Releases · gltonic/frqi_neqr_module
FRQI and NEQR Quantum Image Encoding Module v1.0.0
This is the initial release of the FRQI and NEQR Quantum Image Encoding Module. This module provides a comprehensive set of functions for encoding and decoding images into quantum states using the Flexible Representation of Quantum Images (FRQI) and Novel Enhanced Quantum Representation (NEQR) methods.
Key Features:
- Image Preparation: Prepares images for encoding by making them square and grayscale. Supports resizing based on the number of qubits.
- FRQI Encoding: Functions for creating Qiskit circuits and statevectors for image encoding using the FRQI method.
- NEQR Encoding: Functions for encoding images into statevectors using the NEQR method.
- Decoding: Tools for decoding statevectors or measurement counts back into images.
- Metrics: Calculate Mean Squared Error (MSE) and Structural Similarity Index (SSIM) to compare image similarity.
Functions:
image_preparation(image, num_qubits=None)
make_circ(image, qubit)
get_state(qc)
get_counts(qc, qubit, shots=None)
decoding(counts, num_qubits=None)
calculate_mse(image1, image2)
calculate_ssim(image1, image2)
create_statevector(image, qubits)
encode_image_neqr(image)
decode_neqr(statevector)
This release aims to provide a robust foundation for quantum image processing using FRQI and NEQR methods.