qasm-rust icon indicating copy to clipboard operation
qasm-rust copied to clipboard

Is there a reason user defined gates are not supported?

Open wjyoumans opened this issue 4 years ago • 1 comments

User defined gates are included even in the common include file qelib1.inc, for example:

gate sx a { sdg a; h a; sdg a; }

Is there any plan to support these? Is there a difficulty with adding them? (If it just hasn't been looked at yet I'd be happy to try myself, just making sure it isn't a well-known difficulty).

Currently these error with MissingSemicolon.

wjyoumans avatar Nov 16 '21 07:11 wjyoumans

I see user defined gates are supported, like the Hadamard gate in the README example. I think it is an issue with having multiple instructions in the definition.

wjyoumans avatar Nov 16 '21 20:11 wjyoumans