qiskit.ignis.verification.BConfig.get_measurement_circ¶
-
BConfig.
get_measurement_circ
(n, qregname, cregname, full_measurement=True)[source]¶ Creates a measurement circuit that can toggle between measuring the control qubit or measuring all qubits. The default is measurement of all qubits.
- Parameters
n (
int
) – number of qubitsqregname (
str
) – name of the qubit registercregname (
str
) – name of the classical registerfull_measurement (
bool
) – Whether to append full measurement, or only on the first qubit
- Return type
QuantumCircuit
- Returns
The measurement circuit