qiskit.synthesis.synth_cz_depth_line_mr¶
- synth_cz_depth_line_mr(mat)[source]¶
Synthesis of a CZ circuit for linear nearest neighbour (LNN) connectivity, based on Maslov and Roetteler.
Note that this method reverts the order of qubits in the circuit, and returns a circuit containing CX and phase (S, Sdg or Z) gates.
- প্যারামিটার
mat (ndarray) -- an upper-diagonal matrix representing the CZ circuit. mat[i][j]=1 for i<j represents a CZ(i,j) gate
- রিটার্নস
a circuit implementation of the CZ circuit of depth 2*n+2 for LNN connectivity.
- রিটার্ন টাইপ
- Reference:
Dmitri Maslov, Martin Roetteler, Shorter stabilizer circuits via Bruhat decomposition and quantum circuit transformations, arXiv:1705.09176.