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
Add a new file to quick.circuit.from_framework module called from_pennylane.py. Inside this file, add a new class named FromPennylane which takes a pennylane qnode instance, and returns its quick equivalent. Then, add the shortcut for this to quick.circuit.Circuit's .from_pennylane() method.
Tips
quick currently has implementations for qiskit, cirq, and pytket. Use these to get an idea for implementing this issue.
To avoid compatibility issues in the future arising from new gates and/or custom gates, the implementation must break the gates into already supported gates by quick before conversion. This is known as transpiling the circuit. Do not add every possible gate as it's unsustainable.
If you have issues and/or questions, ping @ACE07-Sev . He'd love to help out.
The text was updated successfully, but these errors were encountered:
Pennylane Converter
Description
Add a new file to
quick.circuit.from_framework
module calledfrom_pennylane.py
. Inside this file, add a new class namedFromPennylane
which takes a pennylane qnode instance, and returns its quick equivalent. Then, add the shortcut for this toquick.circuit.Circuit
's.from_pennylane()
method.Tips
quick
currently has implementations forqiskit
,cirq
, andpytket
. Use these to get an idea for implementing this issue.quick
before conversion. This is known as transpiling the circuit. Do not add every possible gate as it's unsustainable.The text was updated successfully, but these errors were encountered: