Skip to content

Make a function that takes a circuit as an input and mixes it with the QPIXL input. #3

@danielbultrini

Description

@danielbultrini

📄 Background

In the QPIXL_demo.ipynb notebook, the cFRQI_with_alg_demo function illustrates a conceptual example of combining a QPIXL-encoded image with a quantum algorithm circuit. A similar technique is applied in the process_audio function at the end of the notebook.
However, these integrations are currently hardcoded and not easily extensible.

🎯 Goal
Develop a flexible mechanism to allow the integration of:

  • An arbitrary quantum circuit (e.g., a standard or QPIXL circuit),
  • A QPIXL-encoded data circuit
  • A custom rule for how to combine/slice these circuits together (e.g. merge, slice or apply sequentially)
  • Solution can either be a Jupyter notebook or an additional source code file, but must have a simple programatic interface. Ideally it should work as a .py file, so an implementation like that would be preferentially chosen.

An example is available in the notebook and illustrated in this diagram:

Image

This can be delivered as a class or a function and it should return a valid combined quantum circuit.

Refactoring existing code for clarity and modularity is encouraged.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions