iqm.benchmarks.entanglement.ghz.generate_ghz_star_optimal#
- iqm.benchmarks.entanglement.ghz.generate_ghz_star_optimal(qubit_layout: List[int], iqm_server_url: str, backend: IQMBackendBase, quantum_computer: str, 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.
iqm_server_url (str) – str The IQM server URL for extracting fidelities.
backend (IQMBackendBase) – IQMBackendBase The backend to be used for the quantum circuit.
quantum_computer (str) – str The name of the quantum computer to be used for calbration data, i.e. “garnet”, “emerald”, …
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