qiskit-documentation/docs/api/qiskit/qiskit.transpiler.passes.sy...

39 lines
2.1 KiB
Plaintext

---
title: MCXSynthesisNCleanM15 (latest version)
description: API reference for qiskit.transpiler.passes.synthesis.hls_plugins.MCXSynthesisNCleanM15 in the latest version of qiskit
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.transpiler.passes.synthesis.hls_plugins.MCXSynthesisNCleanM15
---
# MCXSynthesisNCleanM15
<Class id="qiskit.transpiler.passes.synthesis.hls_plugins.MCXSynthesisNCleanM15" isDedicatedPage={true} github="https://github.com/Qiskit/qiskit/tree/stable/1.3/qiskit/transpiler/passes/synthesis/hls_plugins.py#L984-L1024" signature="qiskit.transpiler.passes.synthesis.hls_plugins.MCXSynthesisNCleanM15" modifiers="class">
Bases: [`HighLevelSynthesisPlugin`](qiskit.transpiler.passes.synthesis.plugin.HighLevelSynthesisPlugin "qiskit.transpiler.passes.synthesis.plugin.HighLevelSynthesisPlugin")
Synthesis plugin for a multi-controlled X gate based on the paper by Maslov (2016).
See \[1] for details.
This plugin name is :`mcx.n_clean_m15` which can be used as the key on an [`HLSConfig`](qiskit.transpiler.passes.HLSConfig "qiskit.transpiler.passes.HLSConfig") object to use this method with [`HighLevelSynthesis`](qiskit.transpiler.passes.HighLevelSynthesis "qiskit.transpiler.passes.HighLevelSynthesis").
For a multi-controlled X gate with $k\ge 3$ control qubits this synthesis method requires $k - 2$ additional clean auxiliary qubits. The synthesized circuit consists of $2 * k - 1$ qubits and at most $6 * k - 6$ CX gates.
The plugin supports the following plugin-specific options:
* num\_clean\_ancillas: The number of clean auxiliary qubits available.
**References**
1. Maslov., Phys. Rev. A 93, 022311 (2016), [arXiv:1508.03273](https://arxiv.org/pdf/1508.03273)
## Methods
### run
<Function id="qiskit.transpiler.passes.synthesis.hls_plugins.MCXSynthesisNCleanM15.run" github="https://github.com/Qiskit/qiskit/tree/stable/1.3/qiskit/transpiler/passes/synthesis/hls_plugins.py#L1006-L1024" signature="run(high_level_object, coupling_map=None, target=None, qubits=None, **options)">
Run synthesis for the given MCX gate.
</Function>
</Class>