Software development engineering, for fun and profit. Tech advisor. Author.
Highlights
- Pro
Pinned Loading
-
Bell function for calculating the co...
Bell function for calculating the computational basis states ∣00⟩, ∣01⟩, ∣10⟩, ∣00⟩, ∣01⟩, ∣10⟩, and ∣11⟩ 1# Calculate the Bell state using the computational basis states ∣00⟩,∣01⟩,∣10⟩,∣00⟩,∣01⟩,∣10⟩, and ∣11⟩
23import math
45# Define the computational basis states |0> and |1> for a single qubit
-
A Simple Ordered Hashtable
A Simple Ordered Hashtable 1package com.cenriqueortiz.utils;
23/* ---------------------------------------------------------
4* SimpleOrderedHashtable.java
5* Author: C. Enrique Ortiz
-
Simple URL Encoder
Simple URL Encoder 1package com.cenriqueortiz.utils;
23/* ----------------------------------------------------------------------
4* URL Utils - UrlUtils.java
5* Author: C. Enrique Ortiz
-
getKeyByValue(Map<T, E> map, E value)
getKeyByValue(Map<T, E> map, E value) 1public <T, E> T getKeyByValue(Map<T, E> map, E value) {
2for (Map.Entry<T, E> entry : map.entrySet()) {
3if (value.equals(entry.getValue())) {
4return entry.getKey();
5}
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.