// SPDX-FileCopyrightText: 2024 Evandro Chagas Ribeiro da Rosa <evandro@quantuloop.com>
//
// SPDX-License-Identifier: Apache-2.0
//! Specialised decompositions for multi-controlled Pauli-X gates.
//!
//! Sub-modules:
//! - **4 or more controls:** Handled dynamically via `x_network` where the
//! target index is the last element. Dispatched to the fallback
//! function [`c2to4x::c1to4x`].
//! - [`single_aux`]: linear/log-depth decompositions using a single ancilla.
//! - [`v_chain`] : V-chain decompositions using a chain of ancillae.
use Serialize;
/// Selects the largest primitive multi-controlled-X gate available to the network
/// and V-chain decomposers.