def METHOD_NAME():
    a, b, c = cirq.LineQubit.range(3)
    with pytest.raises(ValueError, match="(8,8)"):
        cirq.three_qubit_matrix_to_operations(a, b, c, np.eye(2))
    with pytest.raises(ValueError, match="not unitary"):
        cirq.three_qubit_matrix_to_operations(a, b, c, cirq.unitary(cirq.CCX) * 2)