it('adds the correct number of GridQubit objects with overlapping rows', () => {
// Create a new instance of GridCircuit with 'moments' and an array of symbols.
const circuit = new GridCircuit(moments, [
symbols[0],
symbols[1],
symbols[5],
]);
// Get the children (GridQubit objects) from the circuit.
const qubits = circuit.children;
// Expect the length of qubits array to be 3.
expect(qubits.length).to.equal(3);
});
Associated Context | |
---|---|
Type | Code Snippet ( .ts ) |
Associated Tags | No Tags Associated |
Description | 'No Description Provided' |
Related Links | No Related Links |
Related People | David Merwin |
Sensitive Information | No Sensitive Information Detected |
Shareable Link | https://davidmerwin.pieces.cloud/?p=d7994898f0 |
(https://cdn.mathpix.com/snip/images/Ix4K8hHP-bp4kd4PFhfEFIu91bND7dxJKFPX11UzRuc.original.fullsize.png )
@LangMers
@davidmerwin @CirqBot @dwaveoceanbot @davidmerwin1992