iqm.benchmarks.entanglement.ghz.generate_ghz_star_optimal

iqm.benchmarks.entanglement.ghz.generate_ghz_star_optimal#

iqm.benchmarks.entanglement.ghz.generate_ghz_star_optimal(qubit_layout: list[int], backend: IQMBackend | IQMFacadeBackend, inv: bool = False) IQMCircuit#

Generates the circuit for creating a GHZ state by maximizing the number of CZ gates between a pair of MOVE gates.

Parameters:
  • qubit_layout (list[int]) – The layout of qubits for the GHZ state.

  • backend (IQMBackend | IQMFacadeBackend) – The backend to be used for the quantum circuit.

  • inv (bool) – Whether to generate the inverse circuit.

Returns:

A quantum circuit generating a GHZ state on a given number of qubits.

Return type:

IQMCircuit