You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following kernel applies a given number of controlled x gates to a qubit register. For a fixed number of qubits, I would have expected the runtime of the simulation to scale approx. linearly with the number of controlled x gates. However, I noticed when going from 1e4 to 1e5 gates, the runtime actually increases by a factor ~85, while I would have expected a factor ~10 as in the number of gates.
Questions
Am I missing something, and this is expected behaviour?
Or should I open an issue with that?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Observation
The following kernel applies a given number of
controlled x
gates to a qubit register. For a fixed number of qubits, I would have expected the runtime of the simulation to scale approx. linearly with the number of controlled x gates. However, I noticed when going from 1e4 to 1e5 gates, the runtime actually increases by a factor ~85, while I would have expected a factor ~10 as in the number of gates.Questions
Am I missing something, and this is expected behaviour?
Or should I open an issue with that?
MWE:
mwe.py
Output of
python mwe.py
Environment:
Additional Info
Specifying the GPU-ID via
CUDA_VISIBLE_DEVICES=...
, so that only a single GPU is visible to the script, does not have an influence.Beta Was this translation helpful? Give feedback.
All reactions