Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.ignis.verification.get_ghz_simple

get_ghz_simple(n, measure=True, full_measurement=True)

GitHub

Creates a linear GHZ state with the option of measurement

Parameters

  • n (int) – number of qubits
  • measure (bool) – Whether to add measurement gates
  • full_measurement (bool) – Whether to append full measurement, or only on the first qubit. Relevant only for measure=True

Return type

QuantumCircuit

Returns

A linear GHZ Circuit

Was this page helpful?
Report a bug or request content on GitHub.