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

Implementing Adaptive Style Strength Scaling in Quantum Style Transfer : Classiq and Quantum Coalition “Implementation Challenge” #827

Open
Deeksha-Shanmugam opened this issue Feb 28, 2025 · 4 comments
Assignees
Labels
Paper Implementation Project Implement a paper using Classiq

Comments

@Deeksha-Shanmugam
Copy link

Authors: @ManjulaGandhi, @sgayathridevi, @Deeksha-Shanmugam, @Redhanya34

We propose implementing Adaptive Style Strength Scaling in the QuantArt framework based on the method outlined in QuantArt: Quantizing Image Style Transfer Towards High Visual Fidelity. This improvement introduces content-aware dynamic scaling of style intensity to automate the balance between style fidelity and content preservation, eliminating the need for manual tuning of trade-off parameters (α, β). This implementation is part of the Classiq and Quantum Coalition “Implementation Challenge.”

For the abstract, detailed plan, and implementation approach, please refer to the attached proposal:

Adaptive Style Strength Scaling in Quantum Style Transfer.docx

@NadavClassiq NadavClassiq added the Paper Implementation Project Implement a paper using Classiq label Mar 2, 2025
@NadavClassiq
Copy link
Collaborator

NadavClassiq commented Mar 2, 2025

Hello @Deeksha-Shanmugam !

Please include a summary of your proposal above, focusing on how you plan to implement it using Classiq.

Since this is based on a "classical paper," could you clarify what aspects of the implementation will be quantum? Specifically, how do you intend to leverage quantum computing in this approach?

Thanks!

@NadavClassiq NadavClassiq self-assigned this Mar 2, 2025
@Deeksha-Shanmugam
Copy link
Author

Hello @NadavClassiq!

Thank you for your feedback! Here’s a summary of the proposal and clarification on how quantum computing will be integrated into the implementation using Classiq’s platform.

Summary of the Proposal
The project focuses on Hybrid Quantum-Classical Style Transfer, combining classical and quantum techniques to improve the efficiency and quality of artistic style transfer. The goal is to leverage quantum computing for feature extraction and optimization while relying on classical methods for preprocessing and post-processing. Classiq’s platform will be used to design and optimize the quantum components of this workflow.

Quantum Aspects of the Implementation

  1. Quantum Feature Extraction:
  • The first step involves encoding classical image features into quantum states using Quantum Feature Maps (such as PauliFeatureMap or ZZFeatureMap). This encoding allows the representation of image data in a way that’s suitable for quantum processing.

  • Next, Variational Quantum Circuits (VQCs) will process and transform these features, with a focus on enhancing texture and pattern recognition, which are critical for style transfer.

  1. Quantum Optimization:
  • A key innovation in this project is the design of a Quantum Fidelity Loss Function to optimize the balance between style and content. This involves measuring the fidelity between quantum states representing style and content features, which is expected to lead to more accurate and visually appealing results.
  1. Hybrid Workflow:
  • The classical part of the workflow handles preprocessing (e.g., feature extraction using lightweight CNNs and image encoding) and post-processing (e.g., image reconstruction and super-resolution).

  • The quantum part focuses on feature transformation and optimization, bridging the gap between classical and quantum computing.

Using Classiq’s Platform

  • Classiq’s high-level quantum programming tools will be used to design and optimize the quantum circuits for feature extraction and transformation. This approach allows for a focus on the algorithmic aspects while Classiq handles the underlying complexity.

  • The platform’s synthesis capabilities will be leveraged to minimize qubit usage and circuit depth, ensuring feasibility on near-term quantum hardware.

  • The quantum circuits will be seamlessly integrated with the classical preprocessing and post-processing pipelines to create a cohesive hybrid workflow.

Clarification on the Classical Paper
The project is inspired by classical style transfer methods but extends them by:

  • Replacing classical feature transformation with quantum feature maps and VQCs.

  • Introducing a quantum-inspired loss function for style-content optimization.

  • Demonstrating how quantum computing can enhance efficiency and scalability in style transfer tasks.

I hope this clarifies the quantum aspects of the implementation and how Classiq’s platform will be utilized. Let me know if you need further details!

Best regards,
Deeksha Shanmugam

@NadavClassiq
Copy link
Collaborator

Hello @Deeksha-Shanmugam!

Thank you for your detailed explanation of integrating quantum computing into Hybrid Quantum-Classical Style Transfer using Classiq.

I recommend reviewing Classiq’s PyTorch integration. Additionally, if you encounter any challenges, feel free to ask questions in our Slack community for further guidance.

Looking forward to your contribution!

Thanks!

@Deeksha-Shanmugam
Copy link
Author

Hello @NadavClassiq !

Thank you for your response and for the recommendation to review Classiq’s PyTorch integration! I will explore it to ensure a seamless hybrid implementation.

I appreciate the opportunity to contribute and will reach out on Slack if I need further guidance during development.

Best regards,
Deeksha Shanmugam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Paper Implementation Project Implement a paper using Classiq
Projects
None yet
Development

No branches or pull requests

2 participants