qfnn.qf_fb.q_output module¶
- qfnn.qf_fb.q_output.add_measure(circuit, qubits, name)¶
Function add_measure is used for add the measure gate to the qubits
- Parameters
circuit – quantum circuit
qubits – input quantum registers
- qfnn.qf_fb.q_output.analyze(counts)¶
- Function analyze is used for analyze the count on states to
formulate the probability for each qubit
- Parameters
counts – : quantum execute results, including different states with shots
- Returns
shots of the state ‘1’ for each qubit bits: the number of qubits
- Return type
mycount
- qfnn.qf_fb.q_output.auth_output()¶
- qfnn.qf_fb.q_output.fire_ibmq(circuit, shots, Simulation=True, backend_name='ibmq_essex')¶
class fire_ibmq is used for execute quantum circuit using simulation or ibm quantum processor
- Parameters
circuit – quantum circuit
shots – number of shots
Simulation – simulation or quantum processor
backend_name – backend name if quantum processor
- Returns
quantum execute results, including different states with shots
- Return type
counts
- qfnn.qf_fb.q_output.get_unitary(circuit, IBMQ=None)¶
Function get_unitary is used for execute quantum circuit using simulation to get the unitary matrix that represents the circuit
- Parameters
circuit – quantum circuit
- Returns
unitary matrix
- Return type
unitary