Mixin

piqture.mixin.image_embedding_mixin module

Mixin class for Image Embedding methods

class piqture.mixin.image_embedding_mixin.ImageMixin

Bases: object

A mixin class for implementation of common image embedding methods.

static channel_index(circuit: QuantumCircuit, channel_index_binary: str, qubit_padding: int)

Embeds channel indices on the qubits.

static pixel_position(circuit: QuantumCircuit, pixel_pos_binary: str)

Embeds image pixel positions on the qubits.

Args:

circuit: input circuit on which pixel position is to be embedded.

pixel_pos_binary (str): takes a binary representation of the pixel position.

pixel_value(pixel_pos: int)

Embeds pixel or color values on the qubits.

Args:

pixel_pos (int): takes as an input the pixel position.