def METHOD_NAME(phase):
    """Tests that the GPI gate is unitary."""
    gate = ionq.GPIGate(phi=phase)
    mat = cirq.protocols.unitary(gate)
    numpy.testing.assert_array_almost_equal(mat.dot(mat.conj().T), numpy.identity(2))