-
Notifications
You must be signed in to change notification settings - Fork 1
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
re-create qamomile #51
Conversation
We have introduced an intermediate representation for quantum circuits and operators in Qamomile, which has led to a significant revision of Qamomile’s interface. The Converter class has been introduced. This Converter class provides encoders and decoders that transform instances of constrained optimization problems (compiled_instance) into objects suitable for quantum algorithms such as QAOA and QRAO. The encoder converts these instances into the intermediate representation. Additionally, Qamomile now includes the ability to modify quantum circuits and operators using this intermediate representation, allowing users to customize algorithms using only Qamomile, independent of the SDK. Next, we introduced the Transpiler class. The Transpiler class provides functionality to convert Qamomile’s intermediate representation into SDKs like Qiskit or Quri-parts. With the introduction of the intermediate representation, we have clearly separated the processes of conversion and transpilation, and these are now part of the interface that users can directly interact with. Basic usage can be found in qamomile-docs/quickstart.ipynb. If you need any further modifications, feel free to ask! |
Tasks
|
…ture/ir_hamiltonian
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The rest of the QRAO Hamiltonian will be added in a separate PR.
) -> qp_c.LinearMappedUnboundParametricQuantumCircuit: | ||
"""Apply a parametric two qubit gate to the Qiskit circuit.""" | ||
angle = convert_parameter(gate.parameter, parameters=parameters) | ||
match gate.gate: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The match syntax is available in python 3.10 or later.
No description provided.