Function Pennylane::LightningQubit::Gates::controlBitPatterns¶
Defined in File GateIndices.hpp
Function Documentation¶
-
void Pennylane::LightningQubit::Gates::controlBitPatterns(std::vector<std::size_t> &indices, 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_namespacePennylane_1_1LightningQubit_1_1Gates_1a49705d6cca7e97b0aaf6aacc79768168
Download Python script
Download Notebook
View on GitHub