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], cal_url: str, backend: IQMBackendBase, 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]) – List[int] The layout of qubits for the GHZ state.

  • cal_url (str) – str The calibration URL for extracting fidelities.

  • backend (IQMBackendBase) – IQMBackendBase The backend to be used for the quantum circuit.

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

Returns:

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

Return type:

QuantumCircuit