We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In particular, I'd like to use Qiskit's random_circuit function, but it generates custom gates with phase parameters. For example:
random_circuit
from pyzx.circuit import Circuit from qiskit.circuit.random import random_circuit from qiskit.qasm2 import dumps ... qiskit_circ = random_circuit(qubits, depth) qasm = dumps(qiskit_circ) circ = Circuit.from_qasm(qasm)
This generates code such as:
OPENQASM 2.0; include "qelib1.inc"; gate r(param0,param1) q0 { u3(param0,param1 - pi/2,pi/2 - 1.0*param1) q0; } qreg q[1]; r(pi/2,pi/4) q[0];
The text was updated successfully, but these errors were encountered:
The above raises a TypeError in this line.
TypeError
Sorry, something went wrong.
No branches or pull requests
In particular, I'd like to use Qiskit's
random_circuit
function, but it generates custom gates with phase parameters. For example:This generates code such as:
The text was updated successfully, but these errors were encountered: