# Path: openfermioncirq/_compat_test.py
# def deprecated_test(test: Callable) -> Callable:
#     """Marks a test as using deprecated functionality.
# 
#     Ensures the test is executed within the `pytest.deprecated_call()` context.
# 
#     Args:
#         test: The test.
# 
#     Returns:
#         The decorated test.
#     """
# 
#     @functools.wraps(test)
#     def decorated_test(*args, **kwargs) -> Any:
#         with pytest.deprecated_call():
#             test(*args, **kwargs)
# 
#     return decorated_test


import warnings
import numpy as np
import sympy
import cirq
import pytest
import openfermioncirq as ofc
from cirq.testing import EqualsTester
from openfermioncirq._compat_test import deprecated_test
#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.




@deprecated_test
def test_apply_unitary_effect():
    cirq.testing.assert_has_consistent_apply_unitary_for_various_exponents(
        ofc.CXXYY,
        exponents=[1, -0.5, 0.5, 0.25, -0.25, 0.1, sympy.Symbol('s')])

    cirq.testing.assert_has_consistent_apply_unitary_for_various_exponents(
        ofc.CYXXY,
        exponents=[1, -0.5, 0.5, 0.25, -0.25, 0.1, sympy.Symbol('s')])



# Path: openfermioncirq/_compat_test.py
# def deprecated_test(test: Callable) -> Callable:
#     """Marks a test as using deprecated functionality.
# 
#     Ensures the test is executed within the `pytest.deprecated_call()` context.
# 
#     Args:
#         test: The test.
# 
#     Returns:
#         The decorated test.
#     """
# 
#     @functools.wraps(test)
#     def decorated_test(*args, **kwargs) -> Any:
#         with pytest.deprecated_call():
#             test(*args, **kwargs)
# 
#     return decorated_test


# Path: openfermioncirq/gates/three_qubit_gates_test.py
import warnings
import numpy as np
import sympy
import cirq
import pytest
import openfermioncirq as ofc
from cirq.testing import EqualsTester
from openfermioncirq._compat_test import deprecated_test

#   Licensed under the Apache License, Version 2.0 (the "License");
#   you may not use this file except in compliance with the License.
#   You may obtain a copy of the License at
#
#       http://www.apache.org/licenses/LICENSE-2.0
#
#   Unless required by applicable law or agreed to in writing, software
#   distributed under the License is distributed on an "AS IS" BASIS,
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#   See the License for the specific language governing permissions and
#   limitations under the License.




@deprecated_test
def test_apply_unitary_effect():
    cirq.testing.assert_has_consistent_apply_unitary_for_various_exponents(
        ofc.CXXYY,
        exponents=[1, -0.5, 0.5, 0.25, -0.25, 0.1, sympy.Symbol('s')])

    cirq.testing.assert_has_consistent_apply_unitary_for_various_exponents(
        ofc.CYXXY,
        exponents=[1, -0.5, 0.5, 0.25, -0.25, 0.1, sympy.Symbol('s')])



@deprecated_test