oqc-community / qat

QAT is a quantum compiler and runtime focused on low-level, just-above-driver integration.
Other
37 stars 8 forks source link

Mock builder/hw for debugging and exploration #89

Open jfriel-oqc opened 4 months ago

jfriel-oqc commented 4 months ago

The current echo builder compiles straight down to pulses. Whilst this is useful for testing, it's not so useful for simulators/debugging/analysis that's only interested in the compilation up the "native gate" or "logical" level.

Idea here is relatively simple, a build that when it calls "get_hw_x_pi_2" is just adds Gate(X(pi/2)) (made up object) to the builder for far greater clarity and understanding of what's happening on in the compiler at this level.

Note: I'll pick this up as soon as I can unless someone else wants to get to it first.