Hello. I wanted to try to implement the following circuit in the X8 chip. Can anyone please help me decompose the following circuit so I can implement it? Thanks in advance.
import numpy as np
import strawberryfields as sf
from strawberryfields.ops import *
from numpy import pi, sqrt
import math
import random
def U_D(l,qp,params):
Xgate(params[0]) | qp[0]
Xgate(params[1]) | qp[1]
Xgate(params[2]) | qp[2]
Xgate(params[3]) | qp[3]
CZgate(params[4]) | (qp[0], qp[1])
CZgate(params[5]) | (qp[1], qp[2])
CZgate(params[6]) | (qp[2], qp[3])
return qp
paramsf = [ 0.67298385, 0.37791076, 0.20837424, 0.59441259,
0.55759042, 0.43001499, 0.52092983, 4.80069928,
24.24655461, 0.84556549, -6.36143337]
N=4
n_layers=1
prog = sf.Program(N) # defining photonic quantum circuit with N subsystems (wires)
eng = sf.Engine(backend="fock", backend_options={"cutoff_dim": 10})
with prog.context as q:
for l in range(n_layers):
U_D(l,q,paramsf)
results = eng.run(prog)