Function Pennylane::LightningKokkos::Util::reverseWires¶
Defined in File UtilKokkos.hpp
Function Documentation¶
-
inline auto Pennylane::LightningKokkos::Util::reverseWires(const std::size_t num_qubits, const std::vector<std::size_t> &wires, const std::vector<std::size_t> &controlled_wires) -> std::pair<KokkosIntVector, KokkosIntVector>¶
Compute parity and reverse wires for multi-qubit control operations.
- Parameters
num_qubits – Number of qubits in the state vector.
wires – List of target wires.
controlled_wires – List of control wires.
- Returns
std::pair<KokkosIntVector, KokkosIntVector> Parities and reverse wires for control multi-qubit operations
api/function_UtilKokkos_8hpp_1a76d41d5e47864ce38c154163c1dc567e
Download Python script
Download Notebook
View on GitHub