multi_controlled_toffoli is not working properly!
Closed this issue · 3 comments
Biswayan375 commented
LegacYFTw commented
Hi, thanks for using our software. I'm tagging @arnavdas88 to look into this if possible :)
arnavdas88 commented
On it @LegacYFTw @Biswayan375
arnavdas88 commented
@Biswayan375 , You can check the code now,
from qudiet.core.quantum_circuit import QuantumCircuit
N = 5
qc = QuantumCircuit(
# Represents the dimension of each quantum register
qregs=[4 for _ in range(N)] + [2],
# Represents the initial states
init_states=[0 for _ in range(N+1)],
)
qc.h(5)
qc.toffoli(([1, 2, 3, 5], 4), 1)
qc.measure_all()
print(qc.run())
This works properly!! The MCT have been merged with toffoli implementation for now! Commit: e321713