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

add (3,2)-QRAO #60

Merged
merged 4 commits into from
Aug 21, 2024
Merged

add (3,2)-QRAO #60

merged 4 commits into from
Aug 21, 2024

Conversation

Jacomichi
Copy link
Collaborator

Change

I have implemented Space Efficient QRAO.
And, add __sub__ for Hamiltonian

Example

import jijmodeling as jm
import jijmodeling_transpiler.core as jmt
from qamomile.core.converters.qrao.qrao32 import QRAC32Converter

problem = jm.Problem("sample")
x = jm.BinaryVar("x", shape = (3,))
problem += x[1] * x[2] + x[0]
compiled_instance = jmt.compile_model(problem, {})

converter = QRAC32Converter(compiled_instance)
cost_hamiltonian = converter.get_cost_hamiltonian()
pauli_list = converter.get_encoded_pauli_list()

@Jacomichi Jacomichi requested a review from yuyamashiro August 21, 2024 11:43
@yuyamashiro yuyamashiro merged commit 26902cb into main Aug 21, 2024
6 checks passed
@yuyamashiro yuyamashiro deleted the feature/32qrao branch August 21, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants