def METHOD_NAME(self):
    """Test synthesizing entangling gate with no entangling basis fails."""
    decomposer = XXDecomposer(basis_fidelity={})
    qc = QuantumCircuit(2)
    qc.cx(0, 1)
    mat = Operator(qc).to_matrix()
    with self.assertRaisesRegex(
        qiskit.exceptions.QiskitError,
        "Attempting to synthesize entangling gate with no controlled gates in basis set.",
    ):
        decomposer(mat)