LLY-DML is part of the LILY project and is a Quantum Machine Learning model. It uses so-called L-Gates. These gates are Machine Learning gates that modify their state based on an input to map to a desired state of an input.
The function is partially implemented and is currently undergoing revisions. The method's final structure should adhere to the provided pattern, but adjustments need to be made to ensure it is fully functional. It is important to build the method in a robust and stable manner, incorporating the necessary changes to achieve this goal.
Method: runner
Description:
The runner method executes a quantum circuit based on a specified number of shots (measurements). Shots determine how many times the circuit is measured to obtain statistically reliable results. The method accepts the number of shots as an integer and uses it to run the circuit on a quantum simulator or backend.
Input Parameters:
shots (Integer): Specifies the number of measurements to be performed on the quantum circuit. This value represents how many times the circuit is executed and measured to generate statistical output.
Return Value:
The method returns a structure (e.g., a dictionary) that contains the measurement results. This structure indicates how many times each possible output configuration (bitstring) was observed during the shots.
Workflow:
Circuit Initialization: The quantum circuit is prepared and set up with measurement gates.
Simulation Run: The circuit is executed with the specified number of shots (shots) on a simulator or quantum backend.
Result Return: The measurement results are collected and returned in an appropriate structure, reflecting the frequency of the observed states.
Example Usage:
The method can be called as follows:
results = my_circuit.runner(shots=1024)
Here, results would return a dictionary, for example, mapping bitstrings to their respective frequencies.
Disclaimer
The function is partially implemented and is currently undergoing revisions. The method's final structure should adhere to the provided pattern, but adjustments need to be made to ensure it is fully functional. It is important to build the method in a robust and stable manner, incorporating the necessary changes to achieve this goal.
Method:
runner
Description:
The
runner
method executes a quantum circuit based on a specified number of shots (measurements). Shots determine how many times the circuit is measured to obtain statistically reliable results. The method accepts the number of shots as an integer and uses it to run the circuit on a quantum simulator or backend.Input Parameters:
Return Value:
Workflow:
shots
) on a simulator or quantum backend.Example Usage:
The method can be called as follows:
Here, results would return a dictionary, for example, mapping bitstrings to their respective frequencies.