def METHOD_NAME(self):
    """Test the synthesis of a CX circuit with full connectivity."""
    n = 5
    qc = QuantumCircuit(n)
    for i in range(n):
        for j in range(i + 1, n):
            qc.cx(i, j)
    mat = LinearFunction(qc).linear
    for optimized in [True, False]:
        optimized_qc = optimize_cx_4_options(
            synth_cnot_count_full_pmh, mat, optimize_count=optimized
        )
        self.assertEqual(optimized_qc.depth(), 4)
        self.assertEqual(optimized_qc.count_ops()["cx"], 4)