One step consisting only of gates/operators in the circuit.
More...
#include <classes/circuits.h>
|
| GateStep ()=default |
| Default constructor. More...
|
|
| GateStep (GateType gate_type, std::size_t gate_hash, const std::vector< idx > &ctrl, const std::vector< idx > &target, std::string name="") |
| Constructs a gate step instance. More...
|
|
One step consisting only of gates/operators in the circuit.
◆ GateStep() [1/2]
qpp::QCircuit::GateStep::GateStep |
( |
| ) |
|
|
default |
◆ GateStep() [2/2]
qpp::QCircuit::GateStep::GateStep |
( |
GateType |
gate_type, |
|
|
std::size_t |
gate_hash, |
|
|
const std::vector< idx > & |
ctrl, |
|
|
const std::vector< idx > & |
target, |
|
|
std::string |
name = "" |
|
) |
| |
|
inlineexplicit |
Constructs a gate step instance.
- Parameters
-
gate_type | Gate type |
gate_hash | Hash of the quantum gate |
ctrl | Control qudit indexes |
target | Target qudit indexes |
step_no | Circuit step number |
name | Optional gate name |
◆ ctrl_
std::vector<idx> qpp::QCircuit::GateStep::ctrl_ |
◆ gate_hash_
std::size_t qpp::QCircuit::GateStep::gate_hash_ |
◆ gate_type_
◆ name_
std::string qpp::QCircuit::GateStep::name_ |
◆ target_
std::vector<idx> qpp::QCircuit::GateStep::target_ |
target where the gate is applied
The documentation for this struct was generated from the following file: