Struct GateIndices¶
Defined in File GateIndices.hpp
Struct Documentation¶
-
struct GateIndices¶
Internal utility struct to track data indices of application for operations.
Each external index represents a bitstring outside of wires. For example, if we have four qubits and wires = {1,2}, external indices are {0000B, 0001B, 1000B, 1001B}. For each external index, internal indices are bitstrings for the wires. In the example, we have internal indices {0000B, 0010B, 0100B, 0110B}.
Public Functions
-
inline GateIndices(const std::vector<std::size_t> &wires, std::size_t num_qubits)¶
Create indices for gates.
-
inline GateIndices(const std::vector<std::size_t> &wires, std::size_t num_qubits)¶
api/structPennylane_1_1LightningQubit_1_1Gates_1_1GateIndices
Download Python script
Download Notebook
View on GitHub