Function Pennylane::Util::createAllWires¶
Defined in File TestHelpersWires.hpp
Function Documentation¶
-
inline auto Pennylane::Util::createAllWires(std::size_t n_qubits, Pennylane::Gates::GateOperation gate_op, bool order) -> std::vector<std::vector<std::size_t>>¶
Create all possible combination of wires for a given number of qubits and gate operation.
- Parameters
n_qubits – Number of qubits
gate_op – Gate operation
order – Whether the ordering matters (if true, permutation is used)
api/function_TestHelpersWires_8hpp_1ae53183758a244ebc032e84e1e48e71ee
Download Python script
Download Notebook
View on GitHub