# -*- coding: utf-8 -*-

# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.

"""Provider for local Sympy backends."""

from qiskit.backends import BaseProvider
from .sympy_statevector_simulator import SympyStatevectorSimulator
from .sympy_unitary_simulator import SympyUnitarySimulator


class SympyProvider(BaseProvider):
    """Provider for local Sympy backends."""

    def __init__(self, *args, **kwargs):
        super().__init__(args, kwargs)

        # Populate the list of local Sympy backends.
        statevector_simulator = SympyStatevectorSimulator()
        unitary_simulator = SympyUnitarySimulator()
        self.backends = {statevector_simulator.name: statevector_simulator,
                         unitary_simulator.name: unitary_simulator}

    def get_backend(self, name):
        return self.backends[name]

    def available_backends(self):
        # pylint: disable=arguments-differ
        return list(self.backends.values())

# -*- coding: utf-8 -*-

# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.

"""Provider for local Sympy backends."""

from qiskit.backends import BaseProvider
from .sympy_statevector_simulator import SympyStatevectorSimulator
from .sympy_unitary_simulator import SympyUnitarySimulator


class SympyProvider(BaseProvider):
    """Provider for local Sympy backends."""

    def __init__(self, *args, **kwargs):
        super().__init__(args, kwargs)

        # Populate the list of local Sympy backends.
        statevector_simulator = SympyStatevectorSimulator()
        unitary_simulator = SympyUnitarySimulator()
        self.backends = {statevector_simulator.name: statevector_simulator,
                         unitary_simulator.name: unitary_simulator}

    def get_backend(self, name):
        return self.backends[name]

    def available_backends(self):
        # pylint: disable=arguments-differ
        return list(self.backends.values())

# -*- coding: utf-8 -*- # Copyright 2018, IBM. # # This source code is licensed under the Apache License, Version 2.0 found in # the LICENSE.txt file in the root directory of this source tree. Provider for local Sympy backends. Provider for local Sympy backends. # Populate the list of local Sympy backends. # pylint: disable=arguments-differ