qiskit.ignis.verification.get_ghz_simple¶
-
get_ghz_simple
(n, measure=True, full_measurement=True)[source]¶ Creates a linear GHZ state with the option of measurement
- Parameters
n (
int
) – number of qubitsmeasure (
bool
) – Whether to add measurement gatesfull_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