MCPcopy Create free account

hub / github.com/Apress/quantum-machine-learning-python / functions

Functions126 in github.com/Apress/quantum-machine-learning-python

Method__init__
(self, feature_dim=2, feature_depth=2, train_test_split=0.3
Chapter_5/listing5_5/qsvm_new.py:15
Method__init__
(self, data_qubits, readout)
Chapter_6/listing6_2/tfq_mnist.py:119
Method__init__
(self, num_qubits, backend, copies: int = 1000)
Chapter_6/listing6_1/QCNN.py:22
Method__init__
(self,num_qubits, backend, shift, copies=1000)
Chapter_6/listing6_1/QCNN.py:85
Method__init__
(self, adjacency_matrix: np.ndarray, invert_adjacency=True)
Chapter_7/listing7_2/Max_cut_clustering.py:10
Method__init__
(self, graph_hamiltonian, t, verbose=True)
Chapter_7/listing7_4/quantum_random_walk.py:14
Method__init__
(self, num_elems:int, hamiltonian_type:str, hamiltonian_interactions:np.ndar
Chapter_7/listing7_3/QAOA.py:11
Method__init__
(self, num_input_state_qubits=3, num_ancillia_qubits=5, unitary_transform=No
Chapter_4/listing4_2/quantum_phase_estimation.py:7
Method__init__
(self, N)
Chapter_4/listing4_4/factoring.py:14
Method__init__
(self, ancillia_precision_bits=4, func_domain_size=16, a=7,
Chapter_4/listing4_3/period_finding.py:25
Method__init__
(self, signal_length=16, basis_to_transform='', validate_inverse_fourier=Fal
Chapter_4/listing4_1/quantum_fourier_transform.py:18
Method_decompose_
(self, qubits)
Chapter_5/listing5_1/QuantumPhaseEstimation.py:17
Method_decompose_
(self, qubits)
Chapter_5/listing5_1/EigenRotation.py:21
Method_decompose_
Apply the Rotation Gate for each possible # Eigen value corresponding to the Eigen # value basis state. For each input basis
Chapter_5/listing5_1/EigenValueInversion.py:25
Method_eigen_components
(self)
Chapter_5/listing5_1/hamiltonian_simulator.py:32
Method_with_exponent
(self, exponent)
Chapter_5/listing5_1/hamiltonian_simulator.py:29
Methodforward
Forward pass computation
Chapter_6/listing6_1/QCNN.py:51
Methodforward
(self, input)
Chapter_6/listing6_1/QCNN.py:90
Methodforward
(self, x)
Chapter_6/listing6_1/QCNN.py:110
Functionhinge_accuracy
(y_true, y_pred)
Chapter_6/listing6_2/tfq_mnist.py:154
Functionmain
(signal_length=16, basis_to_transform='0000', validate_inverse_fourier=False)
Chapter_4/listing4_1/quantum_fourier_transform.py:86
Methodmain
Simulates HHL with matrix input, and outputs Pauli observables of the resulting qubit state |x>. Expected observables are cal
Chapter_5/listing5_1/HHL.py:100
Methodnum_qubits
(self)
Chapter_5/listing5_1/QuantumPhaseEstimation.py:14
Methodnum_qubits
(self)
Chapter_5/listing5_1/EigenRotation.py:18
Methodnum_qubits
(self)
Chapter_5/listing5_1/EigenValueInversion.py:22
Functionobjective
(theta)
Chapter_7/listing7_1/vqe_cirq.py:79
← previous101–126 of 126, ranked by callers