Function Pennylane::LightningKokkos::Util::controlBitPatterns¶
Defined in File UtilKokkos.hpp
Function Documentation¶
-
inline void Pennylane::LightningKokkos::Util::controlBitPatterns(std::vector<std::size_t> &indices, const std::size_t num_qubits, const std::vector<std::size_t> &controlled_wires, const std::vector<bool> &controlled_values)¶
Introduce quantum controls in indices generated by generateBitPatterns.
- Parameters
indices – Indices for the operation.
num_qubits – Number of qubits in register.
controlled_wires – Control wires.
controlled_values – Control values (false or true).
api/function_UtilKokkos_8hpp_1a5ce782a0147676617f496615e67e7474
Download Python script
Download Notebook
View on GitHub