Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Image Representation algorithms #31

Open
2 of 10 tasks
SaashaJoshi opened this issue Dec 15, 2023 · 2 comments
Open
2 of 10 tasks

Implement Image Representation algorithms #31

SaashaJoshi opened this issue Dec 15, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@SaashaJoshi
Copy link
Owner

SaashaJoshi commented Dec 15, 2023

The pipeline currently has 2 image representation algorithms:

  1. FRQI (2010)
  2. NEQR (2013)

Important QIR methods that need to be added:

  • MCRQI (2011)
  • QUALPI (2013)
  • NAQSS (2014)
  • INEQR (2015)
  • GQIR (2015) (is the superset of INEQR)(should merge INEQR with this)
  • FRQCI (2016)
  • OCQR (2018)
  • BRQI (2018)
  • QRMW (2018)
  • QRMMI (2018)
@SaashaJoshi
Copy link
Owner Author

Do INEQR and GQIR require different implementations?

INEQR represents images of 2^n1 x 2^n2 dimensions, whereas, GQIR represents images of arbitrary dimensions H x W. According to this, INEQR could very much be a subset of GQIR.

@SaashaJoshi
Copy link
Owner Author

SaashaJoshi commented Jan 6, 2024

Answer: Yes, with minor modifications, there is a need for different implementations for INEQR and GQIR.

GQIR needs to modify the pixel_vals matrix to include dummy or None values for the redundancy pixels. For example, if the image is of size 1x3, a total of 2 + 4 = 3 qubits will be required to represent the image on the quantum circuit. However, the pixel_vals matrix should be transformed from something like this [[1, 2, 3]] to something like this [[1, 2, 3, None] [None, None, None, None]].

Screenshot 2024-01-05 at 4 24 15 PM

Image taken from:

N. Jiang, J. Wang, and Y. Mu, “Quantum image scaling up based on nearest-neighbor interpolation with integer scaling ratio,” Quantum Information Processing, vol. 14, no. 11, pp. 4001–4026, Aug. 2015, doi: https://doi.org/10.1007/s11128-015-1099-5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant