PennyLaneAI / catalyst

A JIT compiler for hybrid quantum programs in PennyLane
https://docs.pennylane.ai/projects/catalyst
Apache License 2.0
142 stars 36 forks source link

Fix missing import in OpenQASM runtime backend #1324

Closed dime10 closed 3 days ago

dime10 commented 4 days ago

On mac the runtime build fails with:

/catalyst/runtime/lib/backend/openqasm/openqasm_python_module.cpp:162:20: error: no member named 'pow' in namespace 'std'; did you mean simply 'pow'?
  162 |     probs->reserve(std::pow(2, num_qubits));
github-actions[bot] commented 4 days ago

Hello. You may have forgotten to update the changelog! Please edit doc/releases/changelog-dev.md on your branch with: