# 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 scipy.linalg import expm, kron
from openfermioncirq._compat_test import deprecated_test
    assert ofc.XXYYPowGate(exponent=1.5).exponent == 1.5
    assert ofc.XXYYPowGate(exponent=5).exponent == 5


@deprecated_test
def test_xxyy_eq():
    eq = cirq.testing.EqualsTester()

    eq.add_equality_group(ofc.XXYYPowGate(exponent=3.5),
                          ofc.XXYYPowGate(exponent=-0.5))

    eq.add_equality_group(ofc.XXYYPowGate(exponent=1.5),
                          ofc.XXYYPowGate(exponent=-2.5))

    eq.make_equality_group(lambda: ofc.XXYYPowGate(exponent=0))
    eq.make_equality_group(lambda: ofc.XXYYPowGate(exponent=0.5))


@deprecated_test
def test_xxyy_interchangeable():
    a, b = cirq.LineQubit(0), cirq.LineQubit(1)
    assert ofc.XXYY(a, b) == ofc.XXYY(b, a)


@deprecated_test
def test_xxyy_repr():
    assert repr(ofc.XXYYPowGate(exponent=1)) == 'XXYY'
    assert repr(ofc.XXYYPowGate(exponent=0.5)) == 'XXYY**0.5'



# 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/common_gates_test.py
import warnings
import numpy as np
import sympy
import cirq
import pytest
import openfermioncirq as ofc
from scipy.linalg import expm, kron
from openfermioncirq._compat_test import deprecated_test

    assert ofc.XXYYPowGate(exponent=1.5).exponent == 1.5
    assert ofc.XXYYPowGate(exponent=5).exponent == 5


@deprecated_test
def test_xxyy_eq():
    eq = cirq.testing.EqualsTester()

    eq.add_equality_group(ofc.XXYYPowGate(exponent=3.5),
                          ofc.XXYYPowGate(exponent=-0.5))

    eq.add_equality_group(ofc.XXYYPowGate(exponent=1.5),
                          ofc.XXYYPowGate(exponent=-2.5))

    eq.make_equality_group(lambda: ofc.XXYYPowGate(exponent=0))
    eq.make_equality_group(lambda: ofc.XXYYPowGate(exponent=0.5))


@deprecated_test
def test_xxyy_interchangeable():
    a, b = cirq.LineQubit(0), cirq.LineQubit(1)
    assert ofc.XXYY(a, b) == ofc.XXYY(b, a)


@deprecated_test
def test_xxyy_repr():
    assert repr(ofc.XXYYPowGate(exponent=1)) == 'XXYY'
    assert repr(ofc.XXYYPowGate(exponent=0.5)) == 'XXYY**0.5'



@deprecated_test