Skip to content

Commit

Permalink
Merge pull request #40 from Jij-Inc/feature/change_package_name
Browse files Browse the repository at this point in the history
change name from jijmodeling-transpiler-quantum to qamomile
  • Loading branch information
yuyamashiro authored May 10, 2024
2 parents a9f635f + 718660e commit cbcb0ab
Show file tree
Hide file tree
Showing 39 changed files with 60 additions and 60 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# JijModeling-Transpiler-Quantum
# Qamomile

`JijModeling-Transpiler-Quantum` is a transpiler from model written in [JijModeling]() to quantum optimization algorithms on variaous quantum platform.
`Qamomile` is a transpiler from model written in [JijModeling]() to quantum optimization algorithms on variaous quantum platform.

- [Qiskit](#qiskit)
- [QURI-Parts](#quri-parts)
Expand All @@ -12,15 +12,15 @@
### Installation

```bash
pip install "jijmodeling-transpiler-quantum[qiskit]"
pip install "qamomile[qiskit]"
```

### Quantum Approximate Optimization Algorithm (QAOA)

```python
import jijmodeling as jm
import jijmodeling_transpiler as jmt
import jijmodeling_transpiler_quantum as jtq
import qamomile as jtq

# Create model
problem = jm.Problem("model")
Expand All @@ -39,15 +39,15 @@ qaoa_builder = jtq.qiskit.transpile_to_qaoa(compiled_instance)
[QURI Parts](https://quri-parts.qunasys.com/) is an open source library suite for creating and executing quantum algorithms on various quantum computers and simulators.

```bash
pip install "jijmodeling-transpiler-quantum[quri-parts]"
pip install "qamomile[quri-parts]"
```

### Quantum Approximate Optimization Algorithm (QAOA)

```python
import jijmodeling as jm
import jijmodeling_transpiler as jmt
import jijmodeling_transpiler_quantum as jtq
import qamomile as jtq

# Create model
problem = jm.Problem("model")
Expand Down
14 changes: 7 additions & 7 deletions docs/tutorial/alternating_ansatz_graph_coloring_qiskit.ipynb

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions docs/tutorial/alternating_ansatz_graph_coloring_quri.ipynb

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ enable = true
style = "pep440"

[tool.poetry]
name = "jijmodeling-transpiler-quantum"
name = "qamomile"
version = "0.0.0" # using poetry-dynamic-versioning
description = ""
authors = ["Jij Inc. <[email protected]>"]
readme = "README.md"
packages = [
{include = "jijmodeling_transpiler_quantum"},
{include = "qamomile"},
]

[tool.poetry.dependencies]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from jijmodeling_transpiler_quantum.core import ising_qubo as ising_qubo
from jijmodeling_transpiler_quantum.core import qrac as qrac
from qamomile.core import ising_qubo as ising_qubo
from qamomile.core import qrac as qrac
from .ising_qubo import qubo_to_ising, IsingModel
from .qrac import greedy_graph_coloring

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from jijmodeling_transpiler_quantum.qiskit import qaoa as qaoa
from jijmodeling_transpiler_quantum.qiskit import qrao as qrao
from qamomile.qiskit import qaoa as qaoa
from qamomile.qiskit import qrao as qrao
from .qaoa.to_qaoa import transpile_to_qaoa_ansatz
from .qrao.to_qrac import (
transpile_to_qrac31_hamiltonian,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from jijmodeling_transpiler_quantum.qiskit import (
from qamomile.qiskit import (
minimal_encoding as minimal_encoding,
)
from jijmodeling_transpiler_quantum.qiskit.minimal_encoding.to_minimal_encoding import (
from qamomile.qiskit.minimal_encoding.to_minimal_encoding import (
transpile_to_minimal_encoding,
)

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
import qiskit.quantum_info as qk_ope

from jijmodeling_transpiler_quantum.core import qubo_to_ising
from qamomile.core import qubo_to_ising


def to_ising_operator_from_qubo(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import qiskit as qk
import qiskit.quantum_info as qk_info

from jijmodeling_transpiler_quantum.core import qubo_to_ising
from qamomile.core import qubo_to_ising

from .ising_hamiltonian import to_ising_operator_from_qubo

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
import numpy as np
import qiskit.quantum_info as qk_ope
from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel
from qamomile.core.ising_qubo import IsingModel
from .qrao31 import Pauli, color_group_to_qrac_encode, create_pauli_term


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import enum
import numpy as np
import qiskit.quantum_info as qk_ope
from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel
from qamomile.core.ising_qubo import IsingModel


class Pauli(enum.Enum):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
import numpy as np
import qiskit.quantum_info as qk_ope
from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel
from qamomile.core.ising_qubo import IsingModel
from .qrao31 import Pauli, color_group_to_qrac_encode


Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from __future__ import annotations
import numpy as np
import qiskit.quantum_info as qk_ope
from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel
from qamomile.core.ising_qubo import IsingModel
from .qrao31 import Pauli, create_pauli_term


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import qiskit.quantum_info as qk_info
import jijmodeling as jm
import jijmodeling_transpiler as jmt
import jijmodeling_transpiler_quantum.core as jmt_qc
import qamomile.core as jmt_qc

from .qrao31 import qrac31_encode_ising, Pauli
from .qrao21 import qrac21_encode_ising
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from jijmodeling_transpiler_quantum.quri_parts import qaoa as qaoa
from jijmodeling_transpiler_quantum.quri_parts import qrao as qrao
from qamomile.quri_parts import qaoa as qaoa
from qamomile.quri_parts import qrao as qrao
from .qaoa.to_qaoa import transpile_to_qaoa_ansatz
from .qrao.to_qrac import (
transpile_to_qrac31_hamiltonian,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import numpy as np
from quri_parts.circuit import LinearMappedUnboundParametricQuantumCircuit
from quri_parts.core.operator import Operator, pauli_label
from jijmodeling_transpiler_quantum.core import qubo_to_ising, IsingModel
from qamomile.core import qubo_to_ising, IsingModel


def ising_to_hamiltonian(
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from quri_parts.core.operator import PAULI_IDENTITY, Operator, pauli_label

from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel
from qamomile.core.ising_qubo import IsingModel

from .qrao31 import Pauli, color_group_to_qrac_encode, create_pauli_term

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import numpy as np
from quri_parts.core.operator import PAULI_IDENTITY, Operator, pauli_label

from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel
from qamomile.core.ising_qubo import IsingModel


class Pauli(enum.Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import qiskit.quantum_info as qk_ope
from quri_parts.core.operator import PAULI_IDENTITY, Operator, pauli_label

from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel
from qamomile.core.ising_qubo import IsingModel

from .qrao31 import Pauli, color_group_to_qrac_encode, create_pauli_term

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import jijmodeling_transpiler as jmt
from quri_parts.core.operator import Operator

import jijmodeling_transpiler_quantum.core as jmt_qc
import qamomile.core as jmt_qc

from .qrao21 import qrac21_encode_ising
from .qrao31 import Pauli, qrac31_encode_ising
Expand Down
2 changes: 1 addition & 1 deletion tests/qiskit/test_minimal_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from qiskit.circuit import ParameterVector
from scipy.optimize import minimize

import jijmodeling_transpiler_quantum.qiskit.minimal_encoding as minimal_encoding
import qamomile.qiskit.minimal_encoding as minimal_encoding


def generate_circuit(
Expand Down
2 changes: 1 addition & 1 deletion tests/qiskit/test_qaoa.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import qiskit as qk
from qiskit.algorithms.eigensolvers import NumPyEigensolver

import jijmodeling_transpiler_quantum.qiskit as jmt_qk
import qamomile.qiskit as jmt_qk


def test_qaoa_onehot():
Expand Down
2 changes: 1 addition & 1 deletion tests/qiskit/test_qrao32.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import qiskit as qk
import qiskit.quantum_info as qk_ope

from jijmodeling_transpiler_quantum.qiskit.qrao.qrao32 import (
from qamomile.qiskit.qrao.qrao32 import (
create_pauli_x_prime_term,
create_pauli_y_prime_term,
create_pauli_z_prime_term,
Expand Down
6 changes: 3 additions & 3 deletions tests/qiskit/test_qrao_space_efficient.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import qiskit as qk
import qiskit.quantum_info as qk_ope

from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel
from jijmodeling_transpiler_quantum.qiskit.qrao.qrao31 import Pauli
from jijmodeling_transpiler_quantum.qiskit.qrao.qrao_space_efficient import (
from qamomile.core.ising_qubo import IsingModel
from qamomile.qiskit.qrao.qrao31 import Pauli
from qamomile.qiskit.qrao.qrao_space_efficient import (
numbering_space_efficient_encode,
qrac_space_efficient_encode_ising,
)
Expand Down
4 changes: 2 additions & 2 deletions tests/qiskit/test_to_qrac.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from qiskit.primitives import Estimator, Sampler
from scipy.optimize import minimize

import jijmodeling_transpiler_quantum.qiskit as jtq
from jijmodeling_transpiler_quantum.qiskit import (
import qamomile.qiskit as jtq
from qamomile.qiskit import (
transpile_to_qrac21_hamiltonian,
transpile_to_qrac31_hamiltonian,
transpile_to_qrac32_hamiltonian,
Expand Down
2 changes: 1 addition & 1 deletion tests/quri_parts/test_qaoa_quri.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from quri_parts.qulacs.sampler import create_qulacs_vector_sampler
from scipy.optimize import OptimizeResult, minimize

import jijmodeling_transpiler_quantum.quri_parts as jmt_qp
import qamomile.quri_parts as jmt_qp


def run_qaoa(
Expand Down
2 changes: 1 addition & 1 deletion tests/quri_parts/test_to_qrac_quri.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
import qiskit as qk

from jijmodeling_transpiler_quantum.quri_parts import (
from qamomile.quri_parts import (
transpile_to_qrac21_hamiltonian,
transpile_to_qrac31_hamiltonian,
transpile_to_qrac32_hamiltonian,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ising_qubo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from jijmodeling_transpiler_quantum.core.ising_qubo import qubo_to_ising
from qamomile.core.ising_qubo import qubo_to_ising


def test_onehot_conversion():
Expand Down
8 changes: 4 additions & 4 deletions tests/test_qrac.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import jijmodeling as jm
import jijmodeling_transpiler.core as jtc
import jijmodeling_transpiler_quantum.qiskit as jtqk
import jijmodeling_transpiler_quantum.quri_parts as jtqp
from jijmodeling_transpiler_quantum.core.ising_qubo import IsingModel, qubo_to_ising
from jijmodeling_transpiler_quantum.core.qrac import (
import qamomile.qiskit as jtqk
import qamomile.quri_parts as jtqp
from qamomile.core.ising_qubo import IsingModel, qubo_to_ising
from qamomile.core.qrac import (
check_linear_term,
greedy_graph_coloring,
)
Expand Down

0 comments on commit cbcb0ab

Please sign in to comment.