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