Skip to content

Instantly share code, notes, and snippets.

@dyoder
Created August 16, 2012 01:36
Show Gist options
  • Save dyoder/3365453 to your computer and use it in GitHub Desktop.
Save dyoder/3365453 to your computer and use it in GitHub Desktop.
QCL Program
QCL Quantum Computation Language (64 qubits, seed 1345080866)
[0/64] 1 |0>
qcl> qureg a[1]; qureg b[1];
qcl> Rot(-pi/3,a);
[2/64] 0.86603 |0,0> + 0.5 |1,0>
qcl> H(b);
[2/64] 0.61237 |0,0> + 0.35355 |1,0> + 0.61237 |0,1> + 0.35355 |1,1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment