Skip to content

Prepare a 4-qubit linear cluster state for measurement-based quantum computation.

Notifications You must be signed in to change notification settings

iniestarchen/cluster-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

1D Cluster State

Category: fundamentals  |  Difficulty: intermediate  |  Qubits: 4  |  Gates: 7  |  Depth: 5

Cluster states are highly entangled resource states for measurement-based (one-way) quantum computation. In this model, the entire computation is driven by single-qubit measurements on a pre-prepared cluster state. The 1D cluster state on N qubits is created by placing all qubits in |+⟩ and applying CZ gates between nearest neighbours.

Expected Output

Entangled 4-qubit cluster state; correlated measurement outcomes

Circuit

The OpenQASM 2.0 circuit is in circuit.qasm.

OPENQASM 2.0;
include "qelib1.inc";
// 1D cluster state on 4 qubits (linear graph: 0-1-2-3)
qreg q[4];
creg c[4];
// Initialize all qubits in |+>
h q[0]; h q[1]; h q[2]; h q[3];
// Apply CZ between neighbouring pairs
cz q[0],q[1];
cz q[1],q[2];
cz q[2],q[3];
measure q[0] -> c[0];
measure q[1] -> c[1];
measure q[2] -> c[2];
measure q[3] -> c[3];

Tags

cluster-state measurement-based resource-state fundamentals

References

License

MIT — part of the OpenQC Algorithm Catalog.

About

Prepare a 4-qubit linear cluster state for measurement-based quantum computation.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published