Commit 30c988da authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

removing unfinished unitary.py example

parent 5e4a7705
Loading
Loading
Loading
Loading
Loading

python/examples/unitary.py

deleted100644 → 0
+0 −20
Original line number Diff line number Diff line

from qcor import qjit, qreg
import numpy as np
def decompose(q : qreg):
    return 

@qjit
def ccnot(q :qreg):
    for i in range(q.size()):
        X(q[i])

    with decompose as ccnot_mat:
        ccnot_mat = np.eye(8,8)
        ccnot_mat[6, 6] = 0.0
        ccnot_mat[7, 7] = 0.0
        ccnot_mat[6, 7] = 1.0
        ccnot_mat[7, 6] = 1.0

    for i in range(q.size()):
        Measure(q[i])
 No newline at end of file