import pytest

from ....base.qubits import Qubits
from ...registers import Registers


@pytest.fixture(
    params=[
        {
            "qubits": Qubits(
                [
                    [0.7 + 0j, 0j, 0j, 0j],
                    [0j, 0.3 + 0j, 0j, 0j],
                    [0j, 0j, 0j, 0j],
                    [0j, 0j, 0j, 0j],
                ]
            ),
            "registers": Registers(1),
            "values": [100.0],
        },
        {
            "qubits": Qubits(
                [
                    [0.5 + 0j, 0j, 0j, 0.5 + 0j],
                    [0j, 0j, 0j, 0j],
                    [0j, 0j, 0j, 0j],
                    [0.5 + 0j, 0j, 0j, 0.5 + 0j],
                ]
            ),
            "registers": Registers(3),
            "values": [100.0, -10.0, 1.0],
        },
    ]
)
def dict_for_test_success_state_put(request):
    """putメソッドの正常系テスト用fixture"""
    return request.param

db0720f963170b9b6c9dcd159b7f6591c5e433af
<mask token>

<mask token>


@pytest.fixture(params=[{'qubits': Qubits([[0.7 + 0.0j, 0.0j, 0.0j, 0.0j],
    [0.0j, 0.3 + 0.0j, 0.0j, 0.0j], [0.0j, 0.0j, 0.0j, 0.0j], [0.0j, 0.0j, 
    0.0j, 0.0j]]), 'registers': Registers(1), 'values': [100.0]}, {'qubits':
    Qubits([[0.5 + 0.0j, 0.0j, 0.0j, 0.5 + 0.0j], [0.0j, 0.0j, 0.0j, 0.0j],
    [0.0j, 0.0j, 0.0j, 0.0j], [0.5 + 0.0j, 0.0j, 0.0j, 0.5 + 0.0j]]),
    'registers': Registers(3), 'values': [100.0, -10.0, 1.0]}])
def dict_for_test_success_state_put(request):
    """putメソッドの正常系テスト用fixture"""
    return request.param

import pytest
from ....base.qubits import Qubits
from ...registers import Registers


@pytest.fixture(params=[{'qubits': Qubits([[0.7 + 0.0j, 0.0j, 0.0j, 0.0j],
    [0.0j, 0.3 + 0.0j, 0.0j, 0.0j], [0.0j, 0.0j, 0.0j, 0.0j], [0.0j, 0.0j, 
    0.0j, 0.0j]]), 'registers': Registers(1), 'values': [100.0]}, {'qubits':
    Qubits([[0.5 + 0.0j, 0.0j, 0.0j, 0.5 + 0.0j], [0.0j, 0.0j, 0.0j, 0.0j],
    [0.0j, 0.0j, 0.0j, 0.0j], [0.5 + 0.0j, 0.0j, 0.0j, 0.5 + 0.0j]]),
    'registers': Registers(3), 'values': [100.0, -10.0, 1.0]}])
def dict_for_test_success_state_put(request):
    """putメソッドの正常系テスト用fixture"""
    return request.param

import pytest

from ....base.qubits import Qubits
from ...registers import Registers


@pytest.fixture(
    params=[
        {
            "qubits": Qubits(
                [
                    [0.7 + 0j, 0j, 0j, 0j],
                    [0j, 0.3 + 0j, 0j, 0j],
                    [0j, 0j, 0j, 0j],
                    [0j, 0j, 0j, 0j],
                ]
            ),
            "registers": Registers(1),
            "values": [100.0],
        },
        {
            "qubits": Qubits(
                [
                    [0.5 + 0j, 0j, 0j, 0.5 + 0j],
                    [0j, 0j, 0j, 0j],
                    [0j, 0j, 0j, 0j],
                    [0.5 + 0j, 0j, 0j, 0.5 + 0j],
                ]
            ),
            "registers": Registers(3),
            "values": [100.0, -10.0, 1.0],
        },
    ]
)
def dict_for_test_success_state_put(request):
    """putメソッドの正常系テスト用fixture"""
    return request.param
