Function Pennylane::Util::maxDecimalForQubit¶
Defined in File Util.hpp
Function Documentation¶
-
inline auto Pennylane::Util::maxDecimalForQubit(size_t qubitIndex, size_t qubits) -> size_t¶
Calculates the decimal value for a qubit, assuming a big-endian convention.
- Parameters
qubitIndex – the index of the qubit in the range [0, qubits)
qubits – the number of qubits in the circuit
- Returns
decimal value for the qubit at specified index
api/function_Util_8hpp_1a14d0dffd616776e07057c0704c10100d
Download Python script
Download Notebook
View on GitHub