Function Pennylane::Util::createAllWires

Function Documentation

inline auto Pennylane::Util::createAllWires(size_t n_qubits, Pennylane::Gates::GateOperation gate_op, bool order) -> std::vector<std::vector<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)