IQM reset operation not working

Open
#4,658 4 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
cpp, python

Research direction

Start by reproducing the circuit-level-noise tutorial with the target changed from stim to iqm, then trace qec.z_dem_from_memory_circuit(surface_code, statePrep, nRounds) and the quake.reset translation error. The work is done when the reset operation is passed in IQM JSON without the reported translation failure; the issue does not name a source file or test.

Written by the indexing model from the issue text.

Description

stale-notified
Required prerequisites
  • Consult the security policy. If reporting a security vulnerability, do not report the bug using this form. Use the process described in the policy to report the issue.
  • Make sure you've read the documentation. Your issue may be addressed there.
  • Search the issue tracker to verify that this hasn't already been reported. +1 or comment there if it has.
  • If possible, make a PR with a failing test to give us a starting point to work on!
Describe the bug

reset operation is not being passed properly between CUDA-Q and IQM

Steps to reproduce the bug

if stim is changed to iqm hardware in this tutorial above, we get the following error:

"error: 'quake.reset' op unable to translate op to IQM Json quake.reset" coming from the line "dem = qec.z_dem_from_memory_circuit(surface_code, statePrep, nRounds)"

side note: the simulation uses a noise model which we believe is automatically removed when executed on hardware

Expected behavior

NA

Is this a regression? If it is, put the last known working version (or commit) here.

Not a regression

Environment
  • CUDA-Q version: latest
  • Python version:
  • C++ compiler:
  • Operating system:
Suggestions

No response

Dominant language
C++
Stars
1.2k
Forks
508
Avg merge
1d 19h
Merged PRs (30d)
100

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from NVIDIA/cuda-quantum

All issues in NVIDIA/cuda-quantum

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.