One step consisting only of measurements in the circuit.
More...
#include <classes/circuits.h>
One step consisting only of measurements in the circuit.
◆ MeasureStep() [1/2]
qpp::QCircuit::MeasureStep::MeasureStep |
( |
| ) |
|
|
default |
◆ MeasureStep() [2/2]
qpp::QCircuit::MeasureStep::MeasureStep |
( |
MeasureType |
measurement_type, |
|
|
const std::vector< std::size_t > & |
mats_hash, |
|
|
const std::vector< idx > & |
target, |
|
|
idx |
c_reg, |
|
|
std::string |
name = "" |
|
) |
| |
|
inlineexplicit |
Constructs a measurement step instance.
- Parameters
-
measurement_type | Measurement type |
mats_hash | Vector of hashes of the measurement matrix/matrices |
target | Target qudit indexes |
c_reg | Classical register where the value of the measurement is stored |
step_no | Circuit step number |
name | Optional gate name |
◆ c_reg_
idx qpp::QCircuit::MeasureStep::c_reg_ {} |
index of the classical register where the measurement result is being stored
◆ mats_hash_
std::vector<std::size_t> qpp::QCircuit::MeasureStep::mats_hash_ |
hashes of measurement matrix/matrices
◆ measurement_type_
◆ name_
std::string qpp::QCircuit::MeasureStep::name_ |
◆ target_
std::vector<idx> qpp::QCircuit::MeasureStep::target_ |
target where the measurement is applied
The documentation for this struct was generated from the following file: