Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize Lightning-Qubit's probs(wires) using bitshift implementation #795

Merged
merged 19 commits into from
Jul 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add to docstring.
  • Loading branch information
vincentmr committed Jul 15, 2024
commit aa09c3a2556ac38a459e6824098408983ede7523
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace PUtil = Pennylane::Util;

/**
* @brief Declare and initialize an index variable such as `i101` (`SV[i101]`
* corresponds to `probs[5]`).
* corresponds to `probs[0B101]` or `probs[5]`).
*/
#define PROBS_CORE_DEF_IF1(var, x0) \
if constexpr (x0 == 1) { \
Expand Down Expand Up @@ -120,7 +120,7 @@ namespace PUtil = Pennylane::Util;

/**
* @brief Declare and initialize an index variable such as `i101` (`SV[i101]`
* corresponds to `probs[5]`) and accumulate the state vector norm into `probs`.
* corresponds to `probs[0B101]` or `probs[5]`) and accumulate the state vector norm into `probs`.
*/
#define PROBS_CORE_DEF_Ix(x0) \
{ \
Expand Down
Loading