3

Here's an intermediate result: it takes at least 5 T gates. The T count of the overlapping Toffoli construction has to be exactly equal to the T count of two Toffolis that overlap at exactly one control, and those two Toffolis can be used to produce a state known to require 5 T states to produce. This circuit with single-common-control Toffolis: Is ...


2

I think that asking for an exact solution is pointless, because quantum computers don't have infinite precision. You are limited, for example, by accuracy of pulses that control the gates. To implement the idea of the mentioned answer, you can refer to this paper which introduces a general method for constructing an efficient and highly accurate quantum ...


2

qsel is an esoteric programming language similar to Ook! or whitespace. All it's doing is requiring you to decompose the circuit into the gateset [CS, H] and then representing the circuit with a ridiculous format. This is possible because [CS, H] is universal and because anything and everything can be efficiently encoded into a binary system that uses two ...


1

Entanglement As to how to create entangled states, the most easy way to do this is with the following circuit: qc = QuantumCircuit(4) qc.h(0) qc.cx(0, 1) qc.cx(1, 2) qc.cx(2, 3) This is an example for $n=4$, and you get the state $\frac{1}{\sqrt{2}}(|0\rangle^{\otimes 4} + |1\rangle^{\otimes 4})$; as confirmed by the statevector_simulator. svsim = Aer....


1

This is now possible. Please check https://quantum-computing.ibm.com/lab/docs/iql/manage/systems/midcircuit-measurement/


Only top voted, non community-wiki answers of a minimum length are eligible