Function Pennylane::LightningQubit::Gates::controlBitPatterns

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).