Skip to content

Register

themaddoctor1 edited this page Nov 16, 2014 · 1 revision

The Register class is used to store an array of Qubit objects, and is located in the computer package. The purpose of the program is to keep track of its Qubit objects and perform changes due to quantum entanglement. Many of the methods, like the getQubits() method and the getQubit() method are pretty straightforward. However, the performEntanglementChange() methods are the most complex. This method is overloaded, so there are two ways to use it. The first version allows the program to provide a Qubit. This one will retrieve the index of the Qubit in the Register, and access the second version, which uses the index to make the changes. For each pair of entangled qubits that includes the provided index, the program will make sure that the other Qubit has the correct relative value.

Clone this wiki locally