Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Minimal teleportation protocol using 3 qubits.
from pyquil import Program, get_qc
from pyquil.gates import H, CNOT, MEASURE, X, Z
p = Program()
ro = p.declare('ro', 'BIT', 3)
p += H(1)
p += CNOT(1,2)
p += CNOT(0,1)
p += H(0)
p += MEASURE(0, ro[0])
p += MEASURE(1, ro[1])
p += X(2).controlled(ro[1])
p += Z(2).controlled(ro[0])
p += MEASURE(2, ro[2])
qc = get_qc('3q-qvm')
result = qc.run(p)
print('Teleportation result:', result)Forest SDK is Rigetti’s quantum software development kit that enables writing, simulating, compiling, and executing quantum programs using the Quil instruction language.
Origin & Creator
Forest SDK is developed by Rigetti Computing as part of their full-stack quantum computing platform. Forest 1.0 was publicly announced by Rigetti. :contentReference[oaicite:0]{index=0}
Industrial Note
Forest SDK is used in research on hybrid quantum‑classical algorithms, variational optimization, and benchmarking on Rigetti’s superconducting qubit hardware, as well as in teaching quantum programming.